KR102577184B1 - Electronic apparatus and operating method thereof - Google Patents

Electronic apparatus and operating method thereof Download PDF

Info

Publication number
KR102577184B1
KR102577184B1 KR1020160063564A KR20160063564A KR102577184B1 KR 102577184 B1 KR102577184 B1 KR 102577184B1 KR 1020160063564 A KR1020160063564 A KR 1020160063564A KR 20160063564 A KR20160063564 A KR 20160063564A KR 102577184 B1 KR102577184 B1 KR 102577184B1
Authority
KR
South Korea
Prior art keywords
buffer
graphics
graphic
electronic device
type
Prior art date
Application number
KR1020160063564A
Other languages
Korean (ko)
Other versions
KR20170132551A (en
Inventor
김승진
이광희
이수용
정우준
김민정
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020160063564A priority Critical patent/KR102577184B1/en
Priority to PCT/KR2017/002708 priority patent/WO2017204443A1/en
Publication of KR20170132551A publication Critical patent/KR20170132551A/en
Application granted granted Critical
Publication of KR102577184B1 publication Critical patent/KR102577184B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

다양한 실시예들에 따른 전자 장치는, 적어도 두개의 객체들에 의해 억세스되는 그래픽 버퍼; 디스플레이; 및 상기 그래픽 버퍼 및 디스플레이에 기능적으로 연결되는 프로세서를 포함할 수 있으며, 상기 프로세서는 상기 그래픽 처리 조건을 분석하여 상기 그래픽 버퍼의 수를 설정하며, 상기 그래픽 버퍼에 기록되는 그래픽 데이터를 상기 디스플레이에 표시되도록 처리할 수 있다.
그 밖의 다양한 실시예가 가능하다.
An electronic device according to various embodiments includes a graphics buffer accessed by at least two objects; display; and a processor functionally connected to the graphics buffer and the display, wherein the processor analyzes the graphics processing conditions, sets the number of graphics buffers, and displays graphics data recorded in the graphics buffer on the display. It can be processed as much as possible.
Various other embodiments are possible.

Description

전자 장치 및 그의 동작 방법{ELECTRONIC APPARATUS AND OPERATING METHOD THEREOF}Electronic device and operating method thereof {ELECTRONIC APPARATUS AND OPERATING METHOD THEREOF}

본 발명의 다양한 실시예들은 전자장치의 메모리 관리방법에 관한 것이다.Various embodiments of the present invention relate to a memory management method of an electronic device.

최근 디지털 기술의 발달과 함께 이동통신 단말기, 스마트 폰(smart phone), 태블릿(tablet) PC(Personal Computer), PDA(Personal Digital Assistant), 전자수첩, 노트북(notebook) 또는 웨어러블 디바이스(wearable device) 등과 같은 다양한 유형의 전자 장치가 널리 사용되고 있다. 전자 장치는, 다른 장치들의 기능까지 아우르는 모바일 컨버전스(mobile convergence) 단계에 이르고 있다.With the recent development of digital technology, mobile communication terminals, smart phones, tablet PCs (Personal Computers), PDA (Personal Digital Assistants), electronic notebooks, laptops, or wearable devices, etc. Various types of electronic devices are widely used. Electronic devices are reaching a stage of mobile convergence that includes the functions of other devices.

전자장치들은 고해상도 이미지를 포함하는 컨텐트를 처리할 수 있으며, 다양한 어플리키에션들을 동시에 실행할 수 있다.Electronic devices can process content containing high-resolution images and run various applications simultaneously.

전자장치에서 다양한 어플리케이션들이 동시에 실행되는 환경으로 변화하면서 메모리의 용량이 증가될 수 있다. 예를들면, 안드로이드 운영 시스템(operating system; OS)를 사용하는 전자장치는 어플리케이션 화면을 표시할 때 그래픽 버퍼가 차지하는 용량이 점차 증가될 수 있으며, 이로인해 메모리 부족이 발생되어 성능 악화를 야기시킬 수 있다.As electronic devices change to an environment where various applications run simultaneously, memory capacity may increase. For example, when an electronic device using the Android operating system (OS) displays an application screen, the space occupied by the graphics buffer may gradually increase, which may cause memory shortage and deteriorate performance. there is.

본 발명의 다양한 실시예에 따른 전자장치는 어플리케이션을 실행할 때, 각 어플리케이션들의 상황에 적합한 최소한의 그래픽 버퍼 개수를 설정하여 메모리를 관리할 수 있는 장치 및 방법을 제공할 수 있다. Electronic devices according to various embodiments of the present invention can provide an apparatus and method for managing memory by setting a minimum number of graphics buffers appropriate for the situation of each application when executing an application.

본 발명의 다양한 실시예에 따른 전자장치는 어플리케이션을 실행할 때 성능을 저하시키지 않는 범위 내에서 버퍼의 수를 동적으로 할당할 수 있는 장치 및 방법을 제공할 수 있다.Electronic devices according to various embodiments of the present invention can provide an apparatus and method that can dynamically allocate the number of buffers within a range that does not degrade performance when executing an application.

본 발명의 다양한 실시예에 따른 전자 장치는, 적어도 두개의 객체들에 의해 억세스되는 그래픽 버퍼; 디스플레이; 및 상기 그래픽 버퍼 및 디스플레이에 기능적으로 연결되는 프로세서를 포함할 수 있다. 상기 프로세서는 상기 그래픽 처리 조건을 분석하여 상기 그래픽 버퍼의 수를 설정하며, 상기 그래픽 버퍼에 기록되는 그래픽 데이터를 상기 디스플레이에 표시되도록 처리할 수 있다. An electronic device according to various embodiments of the present invention includes a graphics buffer accessed by at least two objects; display; and a processor functionally connected to the graphics buffer and display. The processor may analyze the graphics processing conditions, set the number of graphics buffers, and process graphics data recorded in the graphics buffer to be displayed on the display.

본 발명의 다양한 실시예에 따른 전자장치의 동작 방법은, 그래픽 버퍼를 통해 그래픽 표시 기능을 수행하는 어플리케이션을 실행하는 동작; 상기 실행되는 어플리케이션의 그래픽 처리 조건을 분석하여 상기 그래픽 버퍼의 수를 설정하는 동작; 및 상기 그래픽 버퍼에 기록되는 그래픽 데이터를 처리하여 디스플레이에 표시하는 동작을 포함할 수 있다.A method of operating an electronic device according to various embodiments of the present invention includes executing an application that performs a graphic display function through a graphic buffer; Analyzing graphics processing conditions of the executing application and setting the number of graphics buffers; and an operation of processing graphic data recorded in the graphic buffer and displaying it on a display.

다양한 실시예들에 따르면, 전자장치는 그래픽 데이터를 처리하는 중에 그래픽 버퍼의 수를 동적으로 조절하여 프레임 드롭에 의한 그래픽 성능을 저하를 방지할 수 있으며, 그래픽 성능을 저하시키지 않은 범위 내에서 최소한의 그래픽버퍼 개수를 산정함으로써 메모리를 절약할 수 있다. 예를들면, 시스템 메모리 부족으로 인해 성능 병목이 빈번히 발생하는 안드로이드와 같은 모바일 시스템에서 시스템 메모리에 그래픽버퍼를 할당할 때 불필요한 그래픽버퍼 할당을 회피할 수 있어 성능 향상을 도모할 수 있다.According to various embodiments, an electronic device can prevent graphics performance from being degraded due to frame drops by dynamically adjusting the number of graphics buffers while processing graphics data, and can prevent graphics performance from being degraded by reducing the graphics performance to a minimum level without degrading graphics performance. Memory can be saved by calculating the number of graphics buffers. For example, when allocating graphics buffers to system memory in mobile systems such as Android, where performance bottlenecks frequently occur due to lack of system memory, unnecessary graphics buffer allocation can be avoided, thereby improving performance.

도 1은 다양한 실시예들에 따른 네트워크 환경 시스템의 블록도를 도시한다.
도 2는 다양한 실시예들에 따른 전자 장치의 블록도를 도시한다.
도 3은 다양한 실시예들에 따른 프로그램 모듈의 블록도를 도시한다.
도 4는 본 발명의 다양한 실시 예에 따른, 전자 장치의 구성을 도시하는 도면이다.
도 5는 본 발명의 다양한 실시 예에 따른, 전자 장치의 블록도를 나타낸 도면이다.
도 6은 그래픽 시스템에서 그래픽 데이터를 처리하는 더블 버퍼링의 기본 동작을 도시하는 도면이다.
도 7은 어플리케이션과 윈도우 합성기(window compositor) 간의 더블 버퍼링의 동작을 설명하는 도면이다.
도 8은 윈도우 합성기와와 디스플레이 간의 더블 버퍼링 동작을 도시하는 도면이다.
도 9는 안드로이드 OS 시스템에서 더블버퍼링 동작을 도시하는 도면이다.
도 10a - 도 10c는 전자장치에서 트리플 버퍼로 구성되는 그래픽 버퍼의 동작을 설명하기 위한 도면이다.
도 11은 그래픽 버퍼의 증가에 따른 지연 시간을 설명하기 위한 도면이다.
도 12는 본 발명의 다양한 실시예에 따른 안드로이드 OS를 사용하는 전자장치의 구성을 도시하는 도면이다.
도 13은 본 발명의 다양한 실시예에 따른 전자장치에서 어플리케이션의 그래픽 버퍼의 소유시간이 매 프레임에서 일정한 예의 동작을 도시하는 도면이다.
도 14는 본 발명의 다양한 실시예에 따른 전자장치에서 서피스플링거의 그래픽 버퍼의 소유시간이 매 프레임에서 일정한 예의 다른 동작을 도시하는 도면이다
도 15는 본 발명의 다양한 실시예에 따른 전자장치에서 서피스플링거의 그래픽 버퍼의 소유시간이 일정하지 않은 예의 다른 동작을 도시하는 도면이다.
도 16은 본 발명의 다양한 실시예에 따른 전자장치에서 합성 타입의 변경에 따른 동작 예를 도시하는 도면이다.
도 17은 본 발명의 실시예에 따른 전자장치에서 그래픽 데이터를 처리하는 동작을 도시하는 흐름도이다.
도 18은 본 발명의 다양한 실시예에 따른 전자장치가 그래픽 데이터를 처리하는 동작을 도시하는 흐름도이다.
1 shows a block diagram of a network environment system according to various embodiments.
Figure 2 shows a block diagram of an electronic device according to various embodiments.
3 shows a block diagram of a program module according to various embodiments.
FIG. 4 is a diagram illustrating the configuration of an electronic device according to various embodiments of the present invention.
Figure 5 is a block diagram of an electronic device according to various embodiments of the present invention.
FIG. 6 is a diagram illustrating the basic operation of double buffering for processing graphics data in a graphics system.
Figure 7 is a diagram explaining the operation of double buffering between an application and a window compositor.
Figure 8 is a diagram illustrating double buffering operation between a window compositor and a display.
Figure 9 is a diagram showing double buffering operation in the Android OS system.
FIGS. 10A to 10C are diagrams for explaining the operation of a graphics buffer consisting of a triple buffer in an electronic device.
Figure 11 is a diagram to explain the delay time as the graphics buffer increases.
FIG. 12 is a diagram illustrating the configuration of an electronic device using the Android OS according to various embodiments of the present invention.
FIG. 13 is a diagram illustrating an example operation in which the possession time of a graphic buffer of an application is constant in each frame in an electronic device according to various embodiments of the present invention.
FIG. 14 is a diagram illustrating another operation in which the possession time of the graphic buffer of the Surface Flinger is constant in each frame in an electronic device according to various embodiments of the present invention.
FIG. 15 is a diagram illustrating another operation in an example in which the possession time of the graphic buffer of the Surface Flinger is not constant in an electronic device according to various embodiments of the present invention.
FIG. 16 is a diagram illustrating an example of operation according to a change in composition type in an electronic device according to various embodiments of the present invention.
Figure 17 is a flowchart showing an operation of processing graphic data in an electronic device according to an embodiment of the present invention.
FIG. 18 is a flowchart illustrating an operation of an electronic device processing graphic data according to various embodiments of the present invention.

이하, 본 문서의 다양한 실시예들이 첨부된 도면을 참조하여 기재된다. 실시예 및 이에 사용된 용어들은 본 문서에 기재된 기술을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 및/또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함할 수 있다. 본 문서에서, "A 또는 B" 또는 "A 및/또는 B 중 적어도 하나" 등의 표현은 함께 나열된 항목들의 모든 가능한 조합을 포함할 수 있다. "제 1," "제 2," "첫째," 또는 "둘째," 등의 표현들은 해당 구성요소들을, 순서 또는 중요도에 상관없이 수식할 수 있고, 한 구성요소를 다른 구성요소와 구분하기 위해 사용될 뿐 해당 구성요소들을 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에 "(기능적으로 또는 통신적으로) 연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로 연결되거나, 다른 구성요소(예: 제 3 구성요소)를 통하여 연결될 수 있다.Hereinafter, various embodiments of this document are described with reference to the attached drawings. The examples and terms used herein are not intended to limit the technology described in this document to specific embodiments, and should be understood to include various modifications, equivalents, and/or substitutes for the examples. In connection with the description of the drawings, similar reference numbers may be used for similar components. Singular expressions may include plural expressions, unless the context clearly indicates otherwise. In this document, expressions such as “A or B” or “at least one of A and/or B” may include all possible combinations of the items listed together. Expressions such as “first,” “second,” “first,” or “second,” can modify the corresponding components regardless of order or importance, and are used to distinguish one component from another. It is only used and does not limit the corresponding components. When a component (e.g., a first) component is said to be "connected (functionally or communicatively)" or "connected" to another (e.g., second) component, it means that the component is connected to the other component. It may be connected directly to a component or may be connected through another component (e.g., a third component).

본 문서에서, "~하도록 구성된(또는 설정된)(configured to)"은 상황에 따라, 예를 들면, 하드웨어적 또는 소프트웨어적으로 "~에 적합한," "~하는 능력을 가지는," "~하도록 변경된," "~하도록 만들어진," "~를 할 수 있는," 또는 "~하도록 설계된"과 상호 호환적으로(interchangeably) 사용될 수 있다. 어떤 상황에서는, "~하도록 구성된 장치"라는 표현은, 그 장치가 다른 장치 또는 부품들과 함께 "~할 수 있는" 것을 의미할 수 있다. 예를 들면, 문구 "A, B, 및 C를 수행하도록 구성된(또는 설정된) 프로세서"는 해당 동작을 수행하기 위한 전용 프로세서(예: 임베디드 프로세서), 또는 메모리 장치에 저장된 하나 이상의 소프트웨어 프로그램들을 실행함으로써, 해당 동작들을 수행할 수 있는 범용 프로세서(예: CPU 또는 application processor)를 의미할 수 있다. In this document, “configured to” means “suitable for,” “having the ability to,” or “changed to,” depending on the situation, for example, in terms of hardware or software. ," can be used interchangeably with "made to," "capable of," or "designed to." In some contexts, the expression “a device configured to” may mean that the device is “capable of” working with other devices or components. For example, the phrase "processor configured (or set) to perform A, B, and C" refers to a processor dedicated to performing the operations (e.g., an embedded processor), or by executing one or more software programs stored on a memory device. , may refer to a general-purpose processor (e.g., CPU or application processor) capable of performing the corresponding operations.

본 문서의 다양한 실시예들에 따른 전자 장치는, 예를 들면, 스마트폰, 태블릿 PC, 이동 전화기, 영상 전화기, 전자책 리더기, 데스크탑 PC, 랩탑 PC, 넷북 컴퓨터, 워크스테이션, 서버, PDA, PMP(portable multimedia player), MP3 플레이어, 의료기기, 카메라, 또는 웨어러블 장치 중 적어도 하나를 포함할 수 있다. 웨어러블 장치는 액세서리형(예: 시계, 반지, 팔찌, 발찌, 목걸이, 안경, 콘택트 렌즈, 또는 머리 착용형 장치(head-mounted-device(HMD)), 직물 또는 의류 일체형(예: 전자 의복), 신체 부착형(예: 스킨 패드 또는 문신), 또는 생체 이식형 회로 중 적어도 하나를 포함할 수 있다. 어떤 실시예들에서, 전자 장치는, 예를 들면, 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스, 홈 오토매이션 컨트롤 패널, 보안 컨트롤 패널, 미디어 박스(예: 삼성 HomeSyncTM, 애플TVTM, 또는 구글 TVTM), 게임 콘솔(예: XboxTM, PlayStationTM), 전자 사전, 전자 키, 캠코더, 또는 전자 액자 중 적어도 하나를 포함할 수 있다.Electronic devices according to various embodiments of the present document include, for example, smartphones, tablet PCs, mobile phones, video phones, e-book readers, desktop PCs, laptop PCs, netbook computers, workstations, servers, PDAs, and PMPs. (portable multimedia player), MP3 player, medical device, camera, or wearable device. Wearable devices may be accessory (e.g., watches, rings, bracelets, anklets, necklaces, glasses, contact lenses, or head-mounted-device (HMD)), fabric or clothing-integrated (e.g., electronic clothing), The electronic device may include at least one of body attached (e.g., skin pad or tattoo) or bioimplantable circuitry. In some embodiments, the electronic device may include, for example, a television, a digital video disk (DVD) player, Audio, refrigerator, air conditioner, vacuum cleaner, oven, microwave, washing machine, air purifier, set-top box, home automation control panel, security control panel, media box (e.g. Samsung HomeSyncTM, Apple TVTM, or Google TVTM), game console It may include at least one of (e.g. XboxTM, PlayStationTM), an electronic dictionary, an electronic key, a camcorder, or an electronic picture frame.

다른 실시예에서, 전자 장치는, 각종 의료기기(예: 각종 휴대용 의료측정기기(혈당 측정기, 심박 측정기, 혈압 측정기, 또는 체온 측정기 등), MRA(magnetic resonance angiography), MRI(magnetic resonance imaging), CT(computed tomography), 촬영기, 또는 초음파기 등), 네비게이션 장치, 위성 항법 시스템(GNSS(global navigation satellite system)), EDR(event data recorder), FDR(flight data recorder), 자동차 인포테인먼트 장치, 선박용 전자 장비(예: 선박용 항법 장치, 자이로 콤파스 등), 항공 전자기기(avionics), 보안 기기, 차량용 헤드 유닛(head unit), 산업용 또는 가정용 로봇, 드론(drone), 금융 기관의 ATM, 상점의 POS(point of sales), 또는 사물 인터넷 장치 (예: 전구, 각종 센서, 스프링클러 장치, 화재 경보기, 온도조절기, 가로등, 토스터, 운동기구, 온수탱크, 히터, 보일러 등) 중 적어도 하나를 포함할 수 있다. 어떤 실시예에 따르면, 전자 장치는 가구, 건물/구조물 또는 자동차의 일부, 전자 보드(electronic board), 전자 사인 수신 장치(electronic signature receiving device), 프로젝터, 또는 각종 계측 기기(예: 수도, 전기, 가스, 또는 전파 계측 기기 등) 중 적어도 하나를 포함할 수 있다. 다양한 실시예들에서, 전자 장치는 플렉서블하거나, 또는 전술한 다양한 장치들 중 둘 이상의 조합일 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다. 본 문서에서, 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공지능 전자 장치)를 지칭할 수 있다. In another embodiment, the electronic device may include various medical devices (e.g., various portable medical measurement devices (such as blood sugar monitors, heart rate monitors, blood pressure monitors, or body temperature monitors), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), CT (computed tomography), radiography, or ultrasound, etc.), navigation devices, satellite navigation systems (GNSS (global navigation satellite system)), EDR (event data recorder), FDR (flight data recorder), automobile infotainment devices, marine electronic equipment (e.g. marine navigation devices, gyro compasses, etc.), avionics, security devices, head units for vehicles, industrial or home robots, drones, ATMs at financial institutions, point-of-sale (POS) at stores. of sales), or Internet of Things devices (e.g., light bulbs, various sensors, sprinkler devices, fire alarms, thermostats, street lights, toasters, exercise equipment, hot water tanks, heaters, boilers, etc.). According to some embodiments, the electronic device may be a piece of furniture, a building/structure or a vehicle, an electronic board, an electronic signature receiving device, a projector, or various measuring devices (e.g. water, electrical, It may include at least one of gas, radio wave measuring equipment, etc.). In various embodiments, the electronic device may be flexible, or may be a combination of two or more of the various devices described above. Electronic devices according to embodiments of this document are not limited to the above-described devices. In this document, the term user may refer to a person using an electronic device or a device (e.g., an artificial intelligence electronic device) using an electronic device.

도 1을 참조하여, 다양한 실시예들에서의, 네트워크 환경(100) 내의 전자 장치(101)가 기재된다. 전자 장치(101)는 버스(110), 프로세서(120), 메모리(130), 입출력 인터페이스(150), 디스플레이(160), 및 통신 인터페이스(170)를 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)는, 구성요소들 중 적어도 하나를 생략하거나 다른 구성요소를 추가적으로 구비할 수 있다. 버스(110)는 구성요소들(110-170)을 서로 연결하고, 구성요소들 간의 통신(예: 제어 메시지 또는 데이터)을 전달하는 회로를 포함할 수 있다. 프로세서(120)는, 중앙처리장치, 어플리케이션 프로세서, 또는 커뮤니케이션 프로세서(communication processor(CP)) 중 하나 또는 그 이상을 포함할 수 있다. 프로세서(120)는, 예를 들면, 전자 장치(101)의 적어도 하나의 다른 구성요소들의 제어 및/또는 통신에 관한 연산이나 데이터 처리를 실행할 수 있다. 1, an electronic device 101 within a network environment 100, in various embodiments, is described. The electronic device 101 may include a bus 110, a processor 120, a memory 130, an input/output interface 150, a display 160, and a communication interface 170. In some embodiments, the electronic device 101 may omit at least one of the components or may additionally include another component. The bus 110 connects the components 110 to 170 to each other and may include circuitry that transfers communication (eg, control messages or data) between the components. The processor 120 may include one or more of a central processing unit, an application processor, or a communication processor (CP). The processor 120 may, for example, perform operations or data processing related to control and/or communication of at least one other component of the electronic device 101.

메모리(130)는, 휘발성 및/또는 비휘발성 메모리를 포함할 수 있다. 메모리(130)는, 예를 들면, 전자 장치(101)의 적어도 하나의 다른 구성요소에 관계된 명령 또는 데이터를 저장할 수 있다. 한 실시예에 따르면, 메모리(130)는 소프트웨어 및/또는 프로그램(140)을 저장할 수 있다. 프로그램(140)은, 예를 들면, 커널(141), 미들웨어(143), 어플리케이션 프로그래밍 인터페이스(API)(145), 및/또는 어플리케이션 프로그램(또는 "어플리케이션")(147) 등을 포함할 수 있다. 커널(141), 미들웨어(143), 또는 API(145)의 적어도 일부는, 운영 시스템으로 지칭될 수 있다. 커널(141)은, 예를 들면, 다른 프로그램들(예: 미들웨어(143), API(145), 또는 어플리케이션 프로그램(147))에 구현된 동작 또는 기능을 실행하는 데 사용되는 시스템 리소스들(예: 버스(110), 프로세서(120), 또는 메모리(130) 등)을 제어 또는 관리할 수 있다. 또한, 커널(141)은 미들웨어(143), API(145), 또는 어플리케이션 프로그램(147)에서 전자 장치(101)의 개별 구성요소에 접근함으로써, 시스템 리소스들을 제어 또는 관리할 수 있는 인터페이스를 제공할 수 있다. Memory 130 may include volatile and/or non-volatile memory. For example, the memory 130 may store commands or data related to at least one other component of the electronic device 101. According to one embodiment, memory 130 may store software and/or program 140. Program 140 may include, for example, a kernel 141, middleware 143, an application programming interface (API) 145, and/or an application program (or “application”) 147, etc. . At least a portion of the kernel 141, middleware 143, or API 145 may be referred to as an operating system. Kernel 141 may, for example, provide system resources (e.g., middleware 143, API 145, or application program 147) used to execute operations or functions implemented in other programs (e.g., : Bus 110, processor 120, or memory 130, etc.) can be controlled or managed. In addition, the kernel 141 provides an interface for controlling or managing system resources by accessing individual components of the electronic device 101 in the middleware 143, API 145, or application program 147. You can.

미들웨어(143)는, 예를 들면, API(145) 또는 어플리케이션 프로그램(147)이 커널(141)과 통신하여 데이터를 주고받을 수 있도록 중개 역할을 수행할 수 있다. 또한, 미들웨어(143)는 어플리케이션 프로그램(147)으로부터 수신된 하나 이상의 작업 요청들을 우선 순위에 따라 처리할 수 있다. 예를 들면, 미들웨어(143)는 어플리케이션 프로그램(147) 중 적어도 하나에 전자 장치(101)의 시스템 리소스(예: 버스(110), 프로세서(120), 또는 메모리(130) 등)를 사용할 수 있는 우선 순위를 부여하고, 상기 하나 이상의 작업 요청들을 처리할 수 있다. API(145)는 어플리케이션(147)이 커널(141) 또는 미들웨어(143)에서 제공되는 기능을 제어하기 위한 인터페이스로, 예를 들면, 파일 제어, 창 제어, 영상 처리, 또는 문자 제어 등을 위한 적어도 하나의 인터페이스 또는 함수(예: 명령어)를 포함할 수 있다. 입출력 인터페이스(150)는, 예를 들면, 사용자 또는 다른 외부 기기로부터 입력된 명령 또는 데이터를 전자 장치(101)의 다른 구성요소(들)에 전달하거나, 또는 전자 장치(101)의 다른 구성요소(들)로부터 수신된 명령 또는 데이터를 사용자 또는 다른 외부 기기로 출력할 수 있다. The middleware 143 may, for example, perform an intermediary role so that the API 145 or the application program 147 can communicate with the kernel 141 to exchange data. Additionally, the middleware 143 may process one or more work requests received from the application program 147 according to priority. For example, the middleware 143 may use system resources (e.g., bus 110, processor 120, or memory 130, etc.) of the electronic device 101 for at least one of the application programs 147. Priority may be assigned and the one or more work requests may be processed. The API 145 is an interface for the application 147 to control functions provided by the kernel 141 or middleware 143, for example, at least for file control, window control, image processing, or character control. Can contain one interface or function (e.g. command). The input/output interface 150, for example, transmits commands or data input from a user or other external device to other component(s) of the electronic device 101, or to other component(s) of the electronic device 101 ( Commands or data received from (fields) can be output to the user or other external device.

디스플레이(160)는, 예를 들면, 액정 디스플레이(LCD), 발광 다이오드(LED) 디스플레이, 유기 발광 다이오드(OLED) 디스플레이, 또는 마이크로 전자기계 시스템 (MEMS) 디스플레이, 또는 전자종이(electronic paper) 디스플레이를 포함할 수 있다. 디스플레이(160)는, 예를 들면, 사용자에게 각종 콘텐츠(예: 텍스트, 이미지, 비디오, 아이콘, 및/또는 심볼 등)을 표시할 수 있다. 디스플레이(160)는, 터치 스크린을 포함할 수 있으며, 예를 들면, 전자 펜 또는 사용자의 신체의 일부를 이용한 터치, 제스쳐, 근접, 또는 호버링 입력을 수신할 수 있다. 통신 인터페이스(170)는, 예를 들면, 전자 장치(101)와 외부 장치(예: 제 1 외부 전자 장치(102), 제 2 외부 전자 장치(104), 또는 서버(106)) 간의 통신을 설정할 수 있다. 예를 들면, 통신 인터페이스(170)는 무선 통신 또는 유선 통신을 통해서 네트워크(162)에 연결되어 외부 장치(예: 제 2 외부 전자 장치(104) 또는 서버(106))와 통신할 수 있다.Display 160 may be, for example, a liquid crystal display (LCD), a light-emitting diode (LED) display, an organic light-emitting diode (OLED) display, a microelectromechanical system (MEMS) display, or an electronic paper display. It can be included. For example, the display 160 may display various contents (e.g., text, images, videos, icons, and/or symbols, etc.) to the user. The display 160 may include a touch screen and may receive, for example, a touch, gesture, proximity, or hovering input using an electronic pen or a part of the user's body. The communication interface 170, for example, establishes communication between the electronic device 101 and an external device (e.g., the first external electronic device 102, the second external electronic device 104, or the server 106). You can. For example, the communication interface 170 may be connected to the network 162 through wireless or wired communication and communicate with an external device (eg, the second external electronic device 104 or the server 106).

무선 통신은, 예를 들면, LTE, LTE-A(LTE Advance), CDMA(code division multiple access), WCDMA(wideband CDMA), UMTS(universal mobile telecommunications system), WiBro(Wireless Broadband), 또는 GSM(Global System for Mobile Communications) 등 중 적어도 하나를 사용하는 셀룰러 통신을 포함할 수 있다. 한 실시예에 따르면, 무선 통신은, 예를 들면, WiFi(wireless fidelity), 블루투스, 블루투스 저전력(BLE), 지그비(Zigbee), NFC(near field communication), 자력 시큐어 트랜스미션(Magnetic Secure Transmission), 라디오 프리퀀시(RF), 또는 보디 에어리어 네트워크(BAN) 중 적어도 하나를 포함할 수 있다. 한 실시예에 따르면, 무선 통신은 GNSS를 포함할 수 있다. GNSS는, 예를 들면, GPS(Global Positioning System), Glonass(Global Navigation Satellite System), Beidou Navigation Satellite System(이하 “Beidou”) 또는 Galileo, the European global satellite-based navigation system일 수 있다. 이하, 본 문서에서는, “GPS”는 “GNSS”와 상호 호환적으로 사용될 수 있다. 유선 통신은, 예를 들면, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard232), 전력선 통신, 또는 POTS(plain old telephone service) 등 중 적어도 하나를 포함할 수 있다. 네트워크(162)는 텔레커뮤니케이션 네트워크, 예를 들면, 컴퓨터 네트워크(예: LAN 또는 WAN), 인터넷, 또는 텔레폰 네트워크 중 적어도 하나를 포함할 수 있다.Wireless communications include, for example, LTE, LTE Advance (LTE-A), code division multiple access (CDMA), wideband CDMA (WCDMA), universal mobile telecommunications system (UMTS), Wireless Broadband (WiBro), or Global GSM (GSM). It may include cellular communication using at least one of the System for Mobile Communications). According to one embodiment, wireless communication includes, for example, wireless fidelity (WiFi), Bluetooth, Bluetooth Low Energy (BLE), Zigbee, near field communication (NFC), Magnetic Secure Transmission, and radio. It may include at least one of frequency (RF) or body area network (BAN). According to one embodiment, wireless communications may include GNSS. GNSS may be, for example, Global Positioning System (GPS), Global Navigation Satellite System (Glonass), Beidou Navigation Satellite System (hereinafter “Beidou”), or Galileo, the European global satellite-based navigation system. Hereinafter, in this document, “GPS” may be used interchangeably with “GNSS.” Wired communication may include, for example, at least one of universal serial bus (USB), high definition multimedia interface (HDMI), recommended standard 232 (RS-232), power line communication, or plain old telephone service (POTS). there is. Network 162 may include at least one of a telecommunications network, for example, a computer network (e.g., a LAN or WAN), the Internet, or a telephone network.

제 1 및 제 2 외부 전자 장치(102, 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 다양한 실시예들에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 다른 하나 또는 복수의 전자 장치(예: 전자 장치(102,104), 또는 서버(106)에서 실행될 수 있다. 한 실시예에 따르면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로 또는 요청에 의하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 그와 연관된 적어도 일부 기능을 다른 장치(예: 전자 장치(102, 104), 또는 서버(106))에게 요청할 수 있다. 다른 전자 장치(예: 전자 장치(102, 104), 또는 서버(106))는 요청된 기능 또는 추가 기능을 실행하고, 그 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 수신된 결과를 그대로 또는 추가적으로 처리하여 요청된 기능이나 서비스를 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다.Each of the first and second external electronic devices 102 and 104 may be of the same or different type as the electronic device 101. According to various embodiments, all or part of the operations performed on the electronic device 101 may be executed on one or more electronic devices (e.g., the electronic devices 102 and 104, or the server 106). One embodiment According to this, when the electronic device 101 is to perform a certain function or service automatically or upon request, the electronic device 101 performs at least part of the function or service associated therewith instead of or in addition to executing the function or service on its own. A function may be requested from another device (e.g., electronic device 102, 104, or server 106). The other electronic device (e.g., electronic device 102, 104, or server 106) may request the requested function. Alternatively, an additional function may be executed and the result may be transmitted to the electronic device 101. The electronic device 101 may process the received result as is or additionally to provide the requested function or service. For this purpose, e.g. For example, cloud computing, distributed computing, or client-server computing technologies may be used.

도 2는 다양한 실시예들에 따른 전자 장치(201)의 블록도이다. 전자 장치(201)는, 예를 들면, 도 1에 도시된 전자 장치(101)의 전체 또는 일부를 포함할 수 있다. 전자 장치(201)는 하나 이상의 프로세서(예: AP)(210), 통신 모듈(220), 가입자 식별 모듈(224), 메모리(230), 센서 모듈(240), 입력 장치(250), 디스플레이(260), 인터페이스(270), 오디오 모듈(280), 카메라 모듈(291), 전력 관리 모듈(295), 배터리(296), 인디케이터(297), 및 모터(298) 를 포함할 수 있다. 프로세서(210)는, 예를 들면, 운영 체제 또는 응용 프로그램을 구동하여 프로세서(210)에 연결된 다수의 하드웨어 또는 소프트웨어 구성요소들을 제어할 수 있고, 각종 데이터 처리 및 연산을 수행할 수 있다. 프로세서(210)는, 예를 들면, SoC(system on chip) 로 구현될 수 있다. 한 실시예에 따르면, 프로세서(210)는 GPU(graphic processing unit) 및/또는 이미지 신호 프로세서를 더 포함할 수 있다. 프로세서(210)는 도 2에 도시된 구성요소들 중 적어도 일부(예: 셀룰러 모듈(221))를 포함할 수도 있다. 프로세서(210)는 다른 구성요소들(예: 비휘발성 메모리) 중 적어도 하나로부터 수신된 명령 또는 데이터를 휘발성 메모리에 로드하여 처리하고, 결과 데이터를 비휘발성 메모리에 저장할 수 있다.Figure 2 is a block diagram of an electronic device 201 according to various embodiments. The electronic device 201 may include, for example, all or part of the electronic device 101 shown in FIG. 1 . The electronic device 201 includes one or more processors (e.g., AP) 210, a communication module 220, a subscriber identification module 224, a memory 230, a sensor module 240, an input device 250, and a display ( 260), an interface 270, an audio module 280, a camera module 291, a power management module 295, a battery 296, an indicator 297, and a motor 298. The processor 210, for example, can run an operating system or application program to control a number of hardware or software components connected to the processor 210, and can perform various data processing and calculations. The processor 210 may be implemented, for example, as a system on chip (SoC). According to one embodiment, the processor 210 may further include a graphic processing unit (GPU) and/or an image signal processor. The processor 210 may include at least some of the components shown in FIG. 2 (eg, the cellular module 221). The processor 210 may load commands or data received from at least one of the other components (eg, non-volatile memory) into the volatile memory, process the commands, and store the resulting data in the non-volatile memory.

통신 모듈(220)은, 예를 들면, 통신 인터페이스(170)와 동일 또는 유사한 구성을 가질 수 있다. 통신 모듈(220)은, 예를 들면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227), NFC 모듈(228) 및 RF 모듈(229)를 포함할 수 있다. 셀룰러 모듈(221)은, 예를 들면, 통신망을 통해서 음성 통화, 영상 통화, 문자 서비스, 또는 인터넷 서비스 등을 제공할 수 있다. 한 실시예에 따르면, 셀룰러 모듈(221)은 가입자 식별 모듈(예: SIM 카드)(224)을 이용하여 통신 네트워크 내에서 전자 장치(201)의 구별 및 인증을 수행할 수 있다. 한 실시예에 따르면, 셀룰러 모듈(221)은 프로세서(210)가 제공할 수 있는 기능 중 적어도 일부 기능을 수행할 수 있다. 한 실시예에 따르면, 셀룰러 모듈(221)은 커뮤니케이션 프로세서(CP)를 포함할 수 있다. 어떤 실시예에 따르면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227) 또는 NFC 모듈(228) 중 적어도 일부(예: 두 개 이상)는 하나의 integrated chip(IC) 또는 IC 패키지 내에 포함될 수 있다. RF 모듈(229)은, 예를 들면, 통신 신호(예: RF 신호)를 송수신할 수 있다. RF 모듈(229)은, 예를 들면, 트랜시버, PAM(power amp module), 주파수 필터, LNA(low noise amplifier), 또는 안테나 등을 포함할 수 있다. 다른 실시예에 따르면, 셀룰러 모듈(221), WiFi 모듈(223), 블루투스 모듈(225), GNSS 모듈(227) 또는 NFC 모듈(228) 중 적어도 하나는 별개의 RF 모듈을 통하여 RF 신호를 송수신할 수 있다. 가입자 식별 모듈(224)은, 예를 들면, 가입자 식별 모듈을 포함하는 카드 또는 임베디드 SIM을 포함할 수 있으며, 고유한 식별 정보(예: ICCID(integrated circuit card identifier)) 또는 가입자 정보(예: IMSI(international mobile subscriber identity))를 포함할 수 있다. For example, the communication module 220 may have the same or similar configuration as the communication interface 170. The communication module 220 may include, for example, a cellular module 221, a WiFi module 223, a Bluetooth module 225, a GNSS module 227, an NFC module 228, and an RF module 229. there is. For example, the cellular module 221 may provide voice calls, video calls, text services, or Internet services through a communication network. According to one embodiment, the cellular module 221 may use the subscriber identification module (eg, SIM card) 224 to distinguish and authenticate the electronic device 201 within the communication network. According to one embodiment, the cellular module 221 may perform at least some of the functions that the processor 210 can provide. According to one embodiment, the cellular module 221 may include a communication processor (CP). According to some embodiments, at least some (e.g., two or more) of the cellular module 221, WiFi module 223, Bluetooth module 225, GNSS module 227, or NFC module 228 are one integrated chip. (IC) or may be included within an IC package. For example, the RF module 229 may transmit and receive communication signals (eg, RF signals). The RF module 229 may include, for example, a transceiver, a power amp module (PAM), a frequency filter, a low noise amplifier (LNA), or an antenna. According to another embodiment, at least one of the cellular module 221, WiFi module 223, Bluetooth module 225, GNSS module 227, or NFC module 228 transmits and receives RF signals through a separate RF module. You can. Subscriber identity module 224 may include, for example, a card or embedded SIM that includes a subscriber identity module and may include unique identification information (e.g., integrated circuit card identifier (ICCID)) or subscriber information (e.g., IMSI). (international mobile subscriber identity)).

메모리(230)(예: 메모리(130))는, 예를 들면, 내장 메모리(232) 또는 외장 메모리(234)를 포함할 수 있다. 내장 메모리(232)는, 예를 들면, 휘발성 메모리(예: DRAM, SRAM, 또는 SDRAM 등), 비휘발성 메모리(예: OTPROM(one time programmable ROM), PROM, EPROM, EEPROM, mask ROM, flash ROM, 플래시 메모리, 하드 드라이브, 또는 솔리드 스테이트 드라이브 (SSD) 중 적어도 하나를 포함할 수 있다. 외장 메모리(234)는 플래시 드라이브(flash drive), 예를 들면, CF(compact flash), SD(secure digital), Micro-SD, Mini-SD, xD(extreme digital), MMC(multi-media card) 또는 메모리 스틱 등을 포함할 수 있다. 외장 메모리(234)는 다양한 인터페이스를 통하여 전자 장치(201)와 기능적으로 또는 물리적으로 연결될 수 있다.The memory 230 (eg, memory 130) may include, for example, an internal memory 232 or an external memory 234. The built-in memory 232 may include, for example, volatile memory (e.g., DRAM, SRAM, or SDRAM, etc.), non-volatile memory (e.g., one time programmable ROM (OTPROM), PROM, EPROM, EEPROM, mask ROM, flash ROM, etc. , may include at least one of a flash memory, a hard drive, or a solid state drive (SSD). The external memory 234 may include a flash drive, for example, compact flash (CF), or secure digital (SD). ), Micro-SD, Mini-SD, xD (extreme digital), MMC (multi-media card), or memory stick, etc. The external memory 234 is functionally connected to the electronic device 201 through various interfaces. It can be connected physically or physically.

센서 모듈(240)은, 예를 들면, 물리량을 계측하거나 전자 장치(201)의 작동 상태를 감지하여, 계측 또는 감지된 정보를 전기 신호로 변환할 수 있다. 센서 모듈(240)은, 예를 들면, 제스처 센서(240A), 자이로 센서(240B), 기압 센서(240C), 마그네틱 센서(240D), 가속도 센서(240E), 그립 센서(240F), 근접 센서(240G), 컬러(color) 센서(240H)(예: RGB(red, green, blue) 센서), 생체 센서(240I), 온/습도 센서(240J), 조도 센서(240K), 또는 UV(ultra violet) 센서(240M) 중의 적어도 하나를 포함할 수 있다. 추가적으로 또는 대체적으로, 센서 모듈(240)은, 예를 들면, 후각(e-nose) 센서, 일렉트로마이오그라피(EMG) 센서, 일렉트로엔씨팔로그램(EEG) 센서, 일렉트로카디오그램(ECG) 센서, IR(infrared) 센서, 홍채 센서 및/또는 지문 센서를 포함할 수 있다. 센서 모듈(240)은 그 안에 속한 적어도 하나 이상의 센서들을 제어하기 위한 제어 회로를 더 포함할 수 있다. 어떤 실시예에서는, 전자 장치(201)는 프로세서(210)의 일부로서 또는 별도로, 센서 모듈(240)을 제어하도록 구성된 프로세서를 더 포함하여, 프로세서(210)가 슬립(sleep) 상태에 있는 동안, 센서 모듈(240)을 제어할 수 있다.For example, the sensor module 240 may measure a physical quantity or sense the operating state of the electronic device 201 and convert the measured or sensed information into an electrical signal. The sensor module 240 includes, for example, a gesture sensor 240A, a gyro sensor 240B, an atmospheric pressure sensor 240C, a magnetic sensor 240D, an acceleration sensor 240E, a grip sensor 240F, and a proximity sensor ( 240G), color sensor (240H) (e.g. RGB (red, green, blue) sensor), biometric sensor (240I), temperature/humidity sensor (240J), illuminance sensor (240K), or UV (ultra violet) ) It may include at least one of the sensors 240M. Additionally or alternatively, the sensor module 240 may include, for example, an olfactory (e-nose) sensor, an electromyography (EMG) sensor, an electroencephalogram (EEG) sensor, an electrocardiogram (ECG) sensor, It may include an infrared (IR) sensor, an iris sensor, and/or a fingerprint sensor. The sensor module 240 may further include a control circuit for controlling at least one sensor included therein. In some embodiments, the electronic device 201 further includes a processor configured to control the sensor module 240, either as part of the processor 210 or separately, while the processor 210 is in a sleep state, The sensor module 240 can be controlled.

입력 장치(250)는, 예를 들면, 터치 패널(252), (디지털) 펜 센서(254), 키(256), 또는 초음파 입력 장치(258)를 포함할 수 있다. 터치 패널(252)은, 예를 들면, 정전식, 감압식, 적외선 방식, 또는 초음파 방식 중 적어도 하나의 방식을 사용할 수 있다. 또한, 터치 패널(252)은 제어 회로를 더 포함할 수도 있다. 터치 패널(252)은 택타일 레이어(tactile layer)를 더 포함하여, 사용자에게 촉각 반응을 제공할 수 있다. (디지털) 펜 센서(254)는, 예를 들면, 터치 패널의 일부이거나, 별도의 인식용 쉬트를 포함할 수 있다. 키(256)는, 예를 들면, 물리적인 버튼, 광학식 키, 또는 키패드를 포함할 수 있다. 초음파 입력 장치(258)는 마이크(예: 마이크(288))를 통해, 입력 도구에서 발생된 초음파를 감지하여, 상기 감지된 초음파에 대응하는 데이터를 확인할 수 있다.The input device 250 may include, for example, a touch panel 252, a (digital) pen sensor 254, a key 256, or an ultrasonic input device 258. The touch panel 252 may use at least one of, for example, a capacitive type, a resistive type, an infrared type, or an ultrasonic type. Additionally, the touch panel 252 may further include a control circuit. The touch panel 252 may further include a tactile layer to provide a tactile response to the user. The (digital) pen sensor 254 may be, for example, part of a touch panel or may include a separate recognition sheet. Keys 256 may include, for example, physical buttons, optical keys, or keypads. The ultrasonic input device 258 can detect ultrasonic waves generated from an input tool through a microphone (e.g., microphone 288) and check data corresponding to the detected ultrasonic waves.

디스플레이(260)(예: 디스플레이(160))는 패널(262), 홀로그램 장치(264), 프로젝터(266), 및/또는 이들을 제어하기 위한 제어 회로를 포함할 수 있다. 패널(262)은, 예를 들면, 유연하게, 투명하게, 또는 착용할 수 있게 구현될 수 있다. 패널(262)은 터치 패널(252)과 하나 이상의 모듈로 구성될 수 있다. 홀로그램 장치(264)는 빛의 간섭을 이용하여 입체 영상을 허공에 보여줄 수 있다. 프로젝터(266)는 스크린에 빛을 투사하여 영상을 표시할 수 있다. 스크린은, 예를 들면, 전자 장치(201)의 내부 또는 외부에 위치할 수 있다. 인터페이스(270)는, 예를 들면, HDMI(272), USB(274), 광 인터페이스(optical interface)(276), 또는 D-sub(D-subminiature)(278)를 포함할 수 있다. 인터페이스(270)는, 예를 들면, 도 1에 도시된 통신 인터페이스(170)에 포함될 수 있다. 추가적으로 또는 대체적으로, 인터페이스(270)는, 예를 들면, MHL(mobile high-definition link) 인터페이스, SD카드/MMC(multi-media card) 인터페이스, 또는 IrDA(infrared data association) 규격 인터페이스를 포함할 수 있다. Display 260 (e.g., display 160) may include a panel 262, a holographic device 264, a projector 266, and/or control circuitry for controlling them. Panel 262 may be implemented as flexible, transparent, or wearable, for example. The panel 262 may be composed of a touch panel 252 and one or more modules. The hologram device 264 can display a three-dimensional image in the air using light interference. The projector 266 can display an image by projecting light onto the screen. The screen may be located, for example, inside or outside the electronic device 201. The interface 270 may include, for example, HDMI 272, USB 274, optical interface 276, or D-subminiature (D-sub) 278. Interface 270 may be included in, for example, communication interface 170 shown in FIG. 1 . Additionally or alternatively, the interface 270 may include, for example, a mobile high-definition link (MHL) interface, a SD card/multi-media card (MMC) interface, or an infrared data association (IrDA) standard interface. there is.

오디오 모듈(280)은, 예를 들면, 소리와 전기 신호를 쌍방향으로 변환시킬 수 있다. 오디오 모듈(280)의 적어도 일부 구성요소는, 예를 들면, 도 1 에 도시된 입출력 인터페이스(145)에 포함될 수 있다. 오디오 모듈(280)은, 예를 들면, 스피커(282), 리시버(284), 이어폰(286), 또는 마이크(288) 등을 통해 입력 또는 출력되는 소리 정보를 처리할 수 있다. 카메라 모듈(291)은, 예를 들면, 정지 영상 및 동영상을 촬영할 수 있는 장치로서, 한 실시예에 따르면, 하나 이상의 이미지 센서(예: 전면 센서 또는 후면 센서), 렌즈, 이미지 시그널 프로세서(ISP), 또는 플래시(예: LED 또는 xenon lamp 등)를 포함할 수 있다. 전력 관리 모듈(295)은, 예를 들면, 전자 장치(201)의 전력을 관리할 수 있다. 한 실시예에 따르면, 전력 관리 모듈(295)은 PMIC(power management integrated circuit), 충전 IC, 또는 배터리 또는 연료 게이지를 포함할 수 있다. PMIC는, 유선 및/또는 무선 충전 방식을 가질 수 있다. 무선 충전 방식은, 예를 들면, 자기공명 방식, 자기유도 방식 또는 전자기파 방식 등을 포함하며, 무선 충전을 위한 부가적인 회로, 예를 들면, 코일 루프, 공진 회로, 또는 정류기 등을 더 포함할 수 있다. 배터리 게이지는, 예를 들면, 배터리(296)의 잔량, 충전 중 전압, 전류, 또는 온도를 측정할 수 있다. 배터리(296)는, 예를 들면, 충전식 전지 및/또는 태양 전지를 포함할 수 있다. The audio module 280 can, for example, convert sound and electrical signals in two directions. At least some components of the audio module 280 may be included in, for example, the input/output interface 145 shown in FIG. 1 . The audio module 280 may process sound information input or output through, for example, a speaker 282, a receiver 284, an earphone 286, or a microphone 288. The camera module 291 is, for example, a device capable of shooting still images and moving images, and according to one embodiment, it includes one or more image sensors (e.g., a front sensor or a rear sensor), a lens, and an image signal processor (ISP). , or may include a flash (e.g., LED or xenon lamp, etc.). The power management module 295 may manage power of the electronic device 201, for example. According to one embodiment, the power management module 295 may include a power management integrated circuit (PMIC), a charging IC, or a battery or fuel gauge. PMIC may have wired and/or wireless charging methods. The wireless charging method includes, for example, a magnetic resonance method, a magnetic induction method, or an electromagnetic wave method, and may further include an additional circuit for wireless charging, for example, a coil loop, a resonance circuit, or a rectifier. there is. The battery gauge may measure, for example, the remaining amount of the battery 296, voltage, current, or temperature during charging. Battery 296 may include, for example, rechargeable cells and/or solar cells.

인디케이터(297)는 전자 장치(201) 또는 그 일부(예: 프로세서(210))의 특정 상태, 예를 들면, 부팅 상태, 메시지 상태 또는 충전 상태 등을 표시할 수 있다. 모터(298)는 전기적 신호를 기계적 진동으로 변환할 수 있고, 진동, 또는 햅틱 효과 등을 발생시킬 수 있다. 전자 장치(201)는, 예를 들면, DMB(digital multimedia broadcasting), DVB(digital video broadcasting), 또는 미디어플로(mediaFloTM) 등의 규격에 따른 미디어 데이터를 처리할 수 있는 모바일 TV 지원 장치(예: GPU)를 포함할 수 있다. 본 문서에서 기술된 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 다양한 실시예들에서, 전자 장치(예: 전자 장치(201))는 일부 구성요소가 생략되거나, 추가적인 구성요소를 더 포함하거나, 또는, 구성요소들 중 일부가 결합되어 하나의 개체로 구성되되, 결합 이전의 해당 구성요소들의 기능을 동일하게 수행할 수 있다.The indicator 297 may display a specific state of the electronic device 201 or a part thereof (eg, the processor 210), such as a booting state, a message state, or a charging state. The motor 298 can convert electrical signals into mechanical vibration and generate vibration or haptic effects. The electronic device 201 is, for example, a mobile TV support device capable of processing media data according to standards such as digital multimedia broadcasting (DMB), digital video broadcasting (DVB), or mediaFloTM (e.g., GPU) may be included. Each of the components described in this document may be composed of one or more components, and the names of the components may vary depending on the type of electronic device. In various embodiments, an electronic device (e.g., the electronic device 201) omits some components, further includes additional components, or combines some of the components to form a single entity. The functions of the corresponding components before combination can be performed identically.

도 3은 다양한 실시예들에 따른 프로그램 모듈의 블록도이다. 한 실시예에 따르면, 프로그램 모듈(310)(예: 프로그램(140))은 전자 장치(예: 전자 장치(101))에 관련된 자원을 제어하는 운영 체제 및/또는 운영 체제 상에서 구동되는 다양한 어플리케이션(예: 어플리케이션 프로그램(147))을 포함할 수 있다. 운영 체제는, 예를 들면, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, 또는 BadaTM를 포함할 수 있다. 도 3을 참조하면, 프로그램 모듈(310)은 커널(320)(예: 커널(141)), 미들웨어(330)(예: 미들웨어(143)), (API(360)(예: API(145)), 및/또는 어플리케이션(370)(예: 어플리케이션 프로그램(147))을 포함할 수 있다. 프로그램 모듈(310)의 적어도 일부는 전자 장치 상에 프리로드 되거나, 외부 전자 장치(예: 전자 장치(102, 104), 서버(106) 등)로부터 다운로드 가능하다.3 is a block diagram of a program module according to various embodiments. According to one embodiment, the program module 310 (e.g., program 140) is an operating system that controls resources related to an electronic device (e.g., electronic device 101) and/or various applications running on the operating system ( Example: may include an application program (147). The operating system may include, for example, AndroidTM, iOSTM, WindowsTM, SymbianTM, TizenTM, or BadaTM. Referring to Figure 3, the program module 310 includes a kernel 320 (e.g. kernel 141), middleware 330 (e.g. middleware 143), (API 360) (e.g. API 145) ), and/or an application 370 (e.g., an application program 147). At least a portion of the program module 310 is preloaded on an electronic device or an external electronic device (e.g., an electronic device ( 102, 104), server 106, etc.).

커널(320)은, 예를 들면, 시스템 리소스 매니저(321) 및/또는 디바이스 드라이버(323)를 포함할 수 있다. 시스템 리소스 매니저(321)는 시스템 리소스의 제어, 할당, 또는 회수를 수행할 수 있다. 한 실시예에 따르면, 시스템 리소스 매니저(321)는 프로세스 관리부, 메모리 관리부, 또는 파일 시스템 관리부를 포함할 수 있다. 디바이스 드라이버(323)는, 예를 들면, 디스플레이 드라이버, 카메라 드라이버, 블루투스 드라이버, 공유 메모리 드라이버, USB 드라이버, 키패드 드라이버, WiFi 드라이버, 오디오 드라이버, 또는 IPC(inter-process communication) 드라이버를 포함할 수 있다. 미들웨어(330)는, 예를 들면, 어플리케이션(370)이 공통적으로 필요로 하는 기능을 제공하거나, 어플리케이션(370)이 전자 장치 내부의 제한된 시스템 자원을 사용할 수 있도록 API(360)를 통해 다양한 기능들을 어플리케이션(370)으로 제공할 수 있다. 한 실시예에 따르면, 미들웨어(330)는 런타임 라이브러리(335), 어플리케이션 매니저(341), 윈도우 매니저(342), 멀티미디어 매니저(343), 리소스 매니저(344), 파워 매니저(345), 데이터베이스 매니저(346), 패키지 매니저(347), 커넥티비티 매니저(348), 노티피케이션 매니저(349), 로케이션 매니저(350), 그래픽 매니저(351), 또는 시큐리티 매니저(352) 중 적어도 하나를 포함할 수 있다.The kernel 320 may include, for example, a system resource manager 321 and/or a device driver 323. The system resource manager 321 may control, allocate, or retrieve system resources. According to one embodiment, the system resource manager 321 may include a process management unit, a memory management unit, or a file system management unit. The device driver 323 may include, for example, a display driver, a camera driver, a Bluetooth driver, a shared memory driver, a USB driver, a keypad driver, a WiFi driver, an audio driver, or an inter-process communication (IPC) driver. . For example, the middleware 330 provides functions commonly required by the application 370 or provides various functions through the API 360 so that the application 370 can use limited system resources inside the electronic device. It can be provided as an application (370). According to one embodiment, the middleware 330 includes a runtime library 335, an application manager 341, a window manager 342, a multimedia manager 343, a resource manager 344, a power manager 345, and a database manager ( 346), a package manager 347, a connectivity manager 348, a notification manager 349, a location manager 350, a graphics manager 351, or a security manager 352.

런타임 라이브러리(335)는, 예를 들면, 어플리케이션(370)이 실행되는 동안에 프로그래밍 언어를 통해 새로운 기능을 추가하기 위해 컴파일러가 사용하는 라이브러리 모듈을 포함할 수 있다. 런타임 라이브러리(335)는 입출력 관리, 메모리 관리, 또는 산술 함수 처리를 수행할 수 있다. 어플리케이션 매니저(341)는, 예를 들면, 어플리케이션(370)의 생명 주기를 관리할 수 있다. 윈도우 매니저(342)는 화면에서 사용되는 GUI 자원을 관리할 수 있다. 멀티미디어 매니저(343)는 미디어 파일들의 재생에 필요한 포맷을 파악하고, 해당 포맷에 맞는 코덱을 이용하여 미디어 파일의 인코딩 또는 디코딩을 수행할 수 있다. 리소스 매니저(344)는 어플리케이션(370)의 소스 코드 또는 메모리의 공간을 관리할 수 있다. 파워 매니저(345)는, 예를 들면, 배터리의 용량 또는 전원을 관리하고, 전자 장치의 동작에 필요한 전력 정보를 제공할 수 있다. 한 실시예에 따르면, 파워 매니저(345)는 바이오스(BIOS: basic input/output system)와 연동할 수 있다. 데이터베이스 매니저(346)는, 예를 들면, 어플리케이션(370)에서 사용될 데이터베이스를 생성, 검색, 또는 변경할 수 있다. 패키지 매니저(347)는 패키지 파일의 형태로 배포되는 어플리케이션의 설치 또는 갱신을 관리할 수 있다. The runtime library 335 may include, for example, a library module used by a compiler to add new functions through a programming language while the application 370 is running. The runtime library 335 may perform input/output management, memory management, or arithmetic function processing. The application manager 341 may, for example, manage the life cycle of the application 370. The window manager 342 can manage GUI resources used on the screen. The multimedia manager 343 can determine the format required to play media files and encode or decode the media files using a codec suitable for the format. The resource manager 344 may manage the source code or memory space of the application 370. The power manager 345 may, for example, manage battery capacity or power and provide power information necessary for the operation of the electronic device. According to one embodiment, the power manager 345 may be linked to a basic input/output system (BIOS). The database manager 346 may create, search, or change a database to be used in the application 370, for example. The package manager 347 can manage the installation or update of applications distributed in the form of package files.

커넥티비티 매니저(348)는, 예를 들면, 무선 연결을 관리할 수 있다. 노티피케이션 매니저(349)는, 예를 들면, 도착 메시지, 약속, 근접성 알림 등의 이벤트를 사용자에게 제공할 수 있다. 로케이션 매니저(350)는, 예를 들면, 전자 장치의 위치 정보를 관리할 수 있다. 그래픽 매니저(351)는, 예를 들면, 사용자에게 제공될 그래픽 효과 또는 이와 관련된 사용자 인터페이스를 관리할 수 있다. 시큐리티 매니저(352)는, 예를 들면, 시스템 보안 또는 사용자 인증을 제공할 수 있다. 한 실시예에 따르면, 미들웨어(330)는 전자 장치의 음성 또는 영상 통화 기능을 관리하기 위한 통화(telephony) 매니저 또는 전술된 구성요소들의 기능들의 조합을 형성할 수 있는 하는 미들웨어 모듈을 포함할 수 있다. 한 실시예에 따르면, 미들웨어(330)는 운영 체제의 종류 별로 특화된 모듈을 제공할 수 있다. 미들웨어(330)는 동적으로 기존의 구성요소를 일부 삭제하거나 새로운 구성요소들을 추가할 수 있다. API(360)는, 예를 들면, API 프로그래밍 함수들의 집합으로, 운영 체제에 따라 다른 구성으로 제공될 수 있다. 예를 들면, 안드로이드 또는 iOS의 경우, 플랫폼 별로 하나의 API 셋을 제공할 수 있으며, 타이젠의 경우, 플랫폼 별로 두 개 이상의 API 셋을 제공할 수 있다.Connectivity manager 348 may manage wireless connections, for example. The notification manager 349 may provide events such as arrival messages, appointments, and proximity notifications to the user, for example. The location manager 350 may, for example, manage location information of the electronic device. The graphics manager 351 may, for example, manage graphic effects to be provided to users or user interfaces related thereto. Security manager 352 may provide, for example, system security or user authentication. According to one embodiment, the middleware 330 may include a telephony manager for managing the voice or video call function of the electronic device or a middleware module that can form a combination of the functions of the above-described components. . According to one embodiment, the middleware 330 may provide specialized modules for each type of operating system. The middleware 330 may dynamically delete some existing components or add new components. The API 360 is, for example, a set of API programming functions and may be provided in different configurations depending on the operating system. For example, in the case of Android or iOS, one API set can be provided for each platform, and in the case of Tizen, two or more API sets can be provided for each platform.

어플리케이션(370)은, 예를 들면, 홈(371), 다이얼러(372), SMS/MMS(373), IM(instant message)(374), 브라우저(375), 카메라(376), 알람(377), 컨택트(378), 음성 다이얼(379), 이메일(380), 달력(381), 미디어 플레이어(382), 앨범(383), 와치(384), 헬스 케어(예: 운동량 또는 혈당 등을 측정), 또는 환경 정보(예: 기압, 습도, 또는 온도 정보) 제공 어플리케이션을 포함할 수 있다. 한 실시예에 따르면, 어플리케이션(370)은 전자 장치와 외부 전자 장치 사이의 정보 교환을 지원할 수 있는 정보 교환 어플리케이션을 포함할 수 있다. 정보 교환 어플리케이션은, 예를 들면, 외부 전자 장치에 특정 정보를 전달하기 위한 노티피케이션 릴레이 어플리케이션, 또는 외부 전자 장치를 관리하기 위한 장치 관리 어플리케이션을 포함할 수 있다. 예를 들면, 알림 전달 어플리케이션은 전자 장치의 다른 어플리케이션에서 발생된 알림 정보를 외부 전자 장치로 전달하거나, 또는 외부 전자 장치로부터 알림 정보를 수신하여 사용자에게 제공할 수 있다. 장치 관리 어플리케이션은, 예를 들면, 전자 장치와 통신하는 외부 전자 장치의 기능(예: 외부 전자 장치 자체(또는, 일부 구성 부품)의 턴-온/턴-오프 또는 디스플레이의 밝기(또는, 해상도) 조절), 또는 외부 전자 장치에서 동작하는 어플리케이션을 설치, 삭제, 또는 갱신할 수 있다. 한 실시예에 따르면, 어플리케이션(370)은 외부 전자 장치의 속성에 따라 지정된 어플리케이션(예: 모바일 의료 기기의 건강 관리 어플리케이션)을 포함할 수 있다. 한 실시예에 따르면, 어플리케이션(370)은 외부 전자 장치로부터 수신된 어플리케이션을 포함할 수 있다. 프로그램 모듈(310)의 적어도 일부는 소프트웨어, 펌웨어, 하드웨어(예: 프로세서(210)), 또는 이들 중 적어도 둘 이상의 조합으로 구현(예: 실행)될 수 있으며, 하나 이상의 기능을 수행하기 위한 모듈, 프로그램, 루틴, 명령어 세트 또는 프로세스를 포함할 수 있다.The application 370 includes, for example, home 371, dialer 372, SMS/MMS (373), instant message (IM) 374, browser 375, camera 376, and alarm 377. , contact (378), voice dial (379), email (380), calendar (381), media player (382), album (383), watch (384), health care (e.g., measuring the amount of exercise or blood sugar, etc.) , or may include an application that provides environmental information (e.g., atmospheric pressure, humidity, or temperature information). According to one embodiment, the application 370 may include an information exchange application that can support information exchange between an electronic device and an external electronic device. The information exchange application may include, for example, a notification relay application for delivering specific information to an external electronic device, or a device management application for managing the external electronic device. For example, a notification delivery application may deliver notification information generated by another application of an electronic device to an external electronic device, or may receive notification information from an external electronic device and provide it to the user. A device management application may, for example, control the functions of an external electronic device that communicates with the electronic device, such as turning on/off the external electronic device itself (or some of its components) or the brightness (or resolution) of the display. control), or you can install, delete, or update applications running on an external electronic device. According to one embodiment, the application 370 may include an application designated according to the properties of the external electronic device (eg, a health management application for a mobile medical device). According to one embodiment, the application 370 may include an application received from an external electronic device. At least a portion of the program module 310 may be implemented (e.g., executed) in software, firmware, hardware (e.g., processor 210), or a combination of at least two of these, and may be a module for performing one or more functions; May contain programs, routines, instruction sets, or processes.

본 문서에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구성된 유닛을 포함하며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로 등의 용어와 상호 호환적으로 사용될 수 있다. "모듈"은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수 있다. "모듈"은 기계적으로 또는 전자적으로 구현될 수 있으며, 예를 들면, 어떤 동작들을 수행하는, 알려졌거나 앞으로 개발될, ASIC(application-specific integrated circuit) 칩, FPGAs(field-programmable gate arrays), 또는 프로그램 가능 논리 장치를 포함할 수 있다. The term “module” used in this document includes a unit comprised of hardware, software, or firmware, and may be used interchangeably with terms such as logic, logic block, component, or circuit, for example. A “module” may be an integrated part, a minimum unit that performs one or more functions, or a part thereof. A “module” may be implemented mechanically or electronically, for example, in application-specific integrated circuit (ASIC) chips, field-programmable gate arrays (FPGAs), known or hereafter developed, that perform certain operations. May include programmable logic devices.

다양한 실시예들에 따른 장치(예: 모듈들 또는 그 기능들) 또는 방법(예: 동작들)의 적어도 일부는 프로그램 모듈의 형태로 컴퓨터로 판독 가능한 저장 매체(예: 메모리(130))에 저장된 명령어로 구현될 수 있다. 상기 명령어가 프로세서(예: 프로세서(120))에 의해 실행될 경우, 프로세서가 상기 명령어에 해당하는 기능을 수행할 수 있다. 컴퓨터로 판독 가능한 기록 매체는, 하드디스크, 플로피디스크, 마그네틱 매체(예: 자기테이프), 광기록 매체(예: CD-ROM, DVD, 자기-광 매체 (예: 플롭티컬 디스크), 내장 메모리 등을 포함할 수 있다. 명령어는 컴파일러에 의해 만들어지는 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. At least a portion of the device (e.g., modules or functions) or method (e.g., operations) according to various embodiments is stored in a computer-readable storage medium (e.g., memory 130) in the form of a program module. It can be implemented with commands. When the instruction is executed by a processor (eg, processor 120), the processor may perform the function corresponding to the instruction. Computer-readable recording media include hard disks, floppy disks, magnetic media (e.g. magnetic tape), optical recording media (e.g. CD-ROM, DVD, magneto-optical media (e.g. floptical disks), built-in memory, etc. An instruction may include code generated by a compiler or code that can be executed by an interpreter.

다양한 실시예들에 따른 모듈 또는 프로그램 모듈은 전술한 구성요소들 중 적어도 하나 이상을 포함하거나, 일부가 생략되거나, 또는 다른 구성요소를 더 포함할 수 있다. 다양한 실시예들에 따른, 모듈, 프로그램 모듈 또는 다른 구성요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱하게 실행되거나, 적어도 일부 동작이 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.A module or program module according to various embodiments may include at least one of the above-described components, some of them may be omitted, or may further include other components. According to various embodiments, operations performed by a module, program module, or other component may be executed sequentially, in parallel, iteratively, or heuristically, or at least some operations may be executed in a different order, omitted, or other operations may be performed sequentially, in parallel, iteratively, or heuristically. can be added

도 4는 본 발명의 다양한 실시 예에 따른, 전자 장치의 구성을 도시하는 도면이다. FIG. 4 is a diagram illustrating the configuration of an electronic device according to various embodiments of the present invention.

도 4를 참조하면, 전자 장치(400)(예: 도 1의 전자 장치(101))는 적어도 하나의 어플리케이션(예를 들어, 제1 어플리케이션(404), 제2 어플리케이션(405)), 복수의 레이어(예를 들어, 제1 레이어(401), 제2 레이어(402), 및 제3 레이어(403) 등), 윈도우 합성기(windows compositor)(410), 디스플레이 컨트롤러(420), 및 디스플레이 패널(430)을 포함할 수 있다. 본 발명의 다양한 실시 예에 따르면, 제1 레이어(401)는 제1 어플리케이션(404)에 포함되거나 또는 제1 어플리케이션(404)에 대응되어 생성된 것일 수 있고, 제2 레이어(402) 및 제3 레이어(403)는 제2 어플리케이션(405)에 포함되거나 또는 제2 어플리케이션(405)에 대응되어 생성된 것일 수 있다. 일 실시 예에 따르면 레이어(예를 들어, 제1 레이어(401) 내지 제3 레이어(403))는 어플리케이션(예를 들어, 제1 어플리케이션(404) 및 제2 어플리케이션(405)) 외부(예: 윈도우 합성기(410))에 포함될 수도 있다. 또한, 윈도우 합성기(410)는 버퍼 관리 모듈(buffer managing module)(412), 레이어 관리 모듈(layer manager module)(414), 합성 모듈(composition module)(416) 및 그래픽 버퍼 관리 모듈(graphic buffer managing module)(418)을 포함할 수 있다. 본 발명의 다양한 실시 예에 따르면, 상기 복수의 어플리케이션(404, 405), 상기 복수의 레이어(401, 402, 403), 윈도우 합성기(410), 디스플레이 컨트롤러(420), 및 디스플레이 패널(430)은 프로세서(예: 도 1의 프로세서(120))에 의해 동작될 수 있다.Referring to FIG. 4, the electronic device 400 (e.g., the electronic device 101 of FIG. 1) includes at least one application (e.g., a first application 404 and a second application 405) and a plurality of applications. Layers (e.g., first layer 401, second layer 402, and third layer 403, etc.), window compositor 410, display controller 420, and display panel ( 430) may be included. According to various embodiments of the present invention, the first layer 401 may be included in the first application 404 or may be created corresponding to the first application 404, and the second layer 402 and the third The layer 403 may be included in the second application 405 or may be created corresponding to the second application 405. According to one embodiment, the layers (e.g., the first layer 401 to the third layer 403) are external to the application (e.g., the first application 404 and the second application 405) (e.g., It may also be included in the window compositor 410). In addition, the window compositor 410 includes a buffer management module 412, a layer manager module 414, a composition module 416, and a graphic buffer management module. module) (418). According to various embodiments of the present invention, the plurality of applications 404 and 405, the plurality of layers 401, 402, and 403, the window compositor 410, the display controller 420, and the display panel 430 It may be operated by a processor (eg, processor 120 of FIG. 1).

본 발명의 다양한 실시 예에 따르면, 프레임워크(또는, 운영체제)의 종류에 따라, 윈도우 합성기(410)는 합성 모듈(416)을 의미하는 용어로 사용될 수도 있다. 예를 들어, 버퍼 관리 모듈(412), 또는 그래픽 버퍼 관리 모듈(418) 은 윈도우 합성기(410) 외부에 배치될 수 있다. 다양한 실시 예에 따르면, 상기 복수의 모듈들(410, 412, 414, 416, 418)은 하나 또는 그 이상의 모듈로 통합 또는 분할되어 구현될 수도 있다. 예를 들어 합성 모듈(416)과 레이어 관리 모듈(418)은 하나의 모듈(예: surface flinger)로 구현될 수 있다.According to various embodiments of the present invention, depending on the type of framework (or operating system), the window compositor 410 may be used as a term to mean the composition module 416. For example, buffer management module 412, or graphics buffer management module 418 may be placed external to window compositor 410. According to various embodiments, the plurality of modules 410, 412, 414, 416, and 418 may be implemented by being integrated or divided into one or more modules. For example, the composition module 416 and the layer management module 418 may be implemented as one module (eg, surface flinger).

전자 장치에 의해 어플리케이션(예: 제1 어플리케이션(404) 또는 제2 어플리케이션(405))이 실행되는 경우, 어플리케이션은 프레임워크 (예: 윈도우 합성기(410))에 어플리케이션 이미지를 드로잉(drawing)할 화면의 일부 영역을 요청할 수 있다. 프레임워크(예: 윈도우 합성기(410))는 각 어플리케이션들 요청에 대응하여 화면의 일부 영역을 할당하고, 할당된 영역에 대한 정보(예: 레이어)를 관리할 수 있다. When an application (e.g., the first application 404 or the second application 405) is executed by an electronic device, the application creates a screen for drawing the application image on the framework (e.g., the window compositor 410). You can request some areas. The framework (eg, window compositor 410) may allocate a partial area of the screen in response to requests from each application and manage information (eg, layer) about the allocated area.

레이어는 어플리케이션에 대응하는 화면 영역(예: 레이어 영역 또는 서피스 영역)을 관리하는 정보이다. 예를 들어, 레이어는 지정된(specified) 자료구조에 대응하는 객체 또는 인스턴스로서, 어플리케이션 요청에 의해 생성되고 삭제될 수 있다. 실시예에서, 레이어는 어플리케이션이 이미지(또는, 그래픽 데이터)를 드로잉할 그래픽 버퍼의 주소, 프레임 영역(프레임 버퍼의 전체 영역에서 레이어가 차지하는 위치) 정보를 포함할 수 있다. 본 명세서에서 사용되는 레이어라는 용어는 특정한 용어로 한정되지는 않으며, 레이어 대신 다른 용어(예를 들어, surface, window 등) 사용될 수도 있다. 도 4는, 일 실시 예로서, 제1 어플리케이션에 대응되어 생성된 제1 레이어(401)와 제2 어플리케이션에 대응되어 생성된 제2 레이어(402) 및 제3 레이어(403)를 나타내고 있다. 도 4에서는 어플리케이션들의 내부에 각 레이어들을 배치하였으나, 다양한 실시 예에 따르면, 레이어의 실체는 윈도우 합성기(410) 등 다른 모듈에 위치할 수 있다.A layer is information that manages the screen area (e.g. layer area or surface area) corresponding to the application. For example, a layer is an object or instance corresponding to a specified data structure and can be created and deleted by application request. In an embodiment, a layer may include the address of a graphics buffer from which an application will draw an image (or graphics data), and frame area (position occupied by the layer in the entire area of the frame buffer) information. The term layer used in this specification is not limited to a specific term, and other terms (e.g., surface, window, etc.) may be used instead of layer. FIG. 4 shows, as an example, a first layer 401 created corresponding to a first application, and a second layer 402 and a third layer 403 created corresponding to a second application. In FIG. 4, each layer is placed inside the applications, but according to various embodiments, the actual layer may be located in another module, such as the window compositor 410.

레이어 관리 모듈(418)(예를 들어, 프로세서)은 어플리케이션들에 의해 생성된 적어도 하나의 레이어를 관리할 수 있다. 예를 들어, 레이어 관리 모듈(418)은 어플리케이션들의 요청에 따라 레이어를 생성 또는 삭제할 수 있으며, 적어도 하나의 레이어를 리스트로 관리할 수 있다.The layer management module 418 (eg, a processor) may manage at least one layer created by applications. For example, the layer management module 418 can create or delete layers according to requests from applications and manage at least one layer as a list.

일 실시 예에 따르면, 어플리케이션이 실행되는 경우 레이어 관리 모듈(418)(예를 들어, 상기 프로세서)는 상기 어플리케이션에 대응하는 적어도 하나의 레이어를 생성할 수 있다. 일 실시 예에 따르면, 어플리케이션이 화면 구성을 변경하는 경우, 레이어 관리 모듈(418)은 화면 구성의 변경에 대응하여 레이어의 정보를 변경할 수 있다. 예를 들어, 지도 어플리케이션의 경우, 레이어 관리 모듈(418)은 지도 데이터를 제공하는 레이어, 및 상기 지도 어플리케이션에 이용되는 메뉴 레이어를 생성할 수 있다. 또한, 상기 레이어 관리 모듈(418)는 상기 지도 어플리케이션과 함께 디스플레이 패널(430)에 표시되는 상태바(status bar) 레이어를 생성할 수 있다. According to one embodiment, when an application is executed, the layer management module 418 (eg, the processor) may create at least one layer corresponding to the application. According to one embodiment, when the application changes the screen configuration, the layer management module 418 may change the layer information in response to the change in the screen configuration. For example, in the case of a map application, the layer management module 418 can create a layer that provides map data and a menu layer used in the map application. Additionally, the layer management module 418 can create a status bar layer displayed on the display panel 430 together with the map application.

본 발명의 다양한 실시 예에 따르면, 상기 어플리케이션은 어플리케이션 아이콘을 통해 실행되는 어플리케이션뿐만 아니라 어플리케이션 아이콘이 포함된 홈 화면 어플리케이션(또는, 런처(luncher) 어플리케이션)을 포함할 수도 있다. 상기 홈 화면 어플리케이션의 실행 중에, 상기 레이어 관리 모듈(418)은 런처(launcher) 레이어, 월페이퍼(wallpaper) 레이어, 및 상태바(status bar) 레이어를 생성할 수 있다. 또한, 상기 레이어 관리 모듈(418)은 어플리케이션 실행 중에 노티(notification)가 발생한 경우, 상기 노티에 대한 레이어를 더 생성할 수 있다.According to various embodiments of the present invention, the application may include not only an application executed through an application icon, but also a home screen application (or a launcher application) including an application icon. During execution of the home screen application, the layer management module 418 may create a launcher layer, a wallpaper layer, and a status bar layer. Additionally, when a notification occurs during application execution, the layer management module 418 may further create a layer for the notification.

일 실시 예에 따르면, 버퍼 관리 모듈(412)은 그래픽 버퍼를 생성하고 관리할 수 있다. 어플리케이션 또는 레이어는 버퍼 관리 모듈(412)에 버퍼를 요청(dequeue) 할 수 있다. 버퍼 관리 모듈(412)은 버퍼가 요청된 어플리케이션 또는 레이어에 그래픽 버퍼를 생성(또는 할당)해 줄 수 있다. 상기 그래픽 버퍼는 버퍼 관리 모듈(412)이 커널(예를 들어, 도 3의 커널(320))로부터 할당 받은 것일 수 있다. 상기 그래픽 버퍼는 각각의 레이어 별로 할당될 수 있다. 예를 들어, 제2 어플리케이션(405)의 제2 레이어(402)에 대응되는 그래픽 버퍼와 제2 어플리케이션(405)의 제3 레이어(403)에 대응되는 그래픽 버퍼는 별도로 할당될 수 있다. 버퍼 관리 모듈(412)은 다중 버퍼링(예: 더블 버퍼, 트리플 버퍼) 방식에 따라, 하나의 레이어에 대해 복수의 그래픽 버퍼를 할당할 수 있다. 그리고 vsync 주기에 따라, 예를 들어 flip 방식으로, 하나의 레이어에 할당된 복수의 버퍼를 서로 번갈아 사용할 수 있다.According to one embodiment, the buffer management module 412 can create and manage a graphics buffer. An application or layer may request (dequeue) a buffer from the buffer management module 412. The buffer management module 412 can create (or allocate) a graphic buffer to an application or layer for which a buffer has been requested. The graphic buffer may be allocated to the buffer management module 412 from the kernel (eg, kernel 320 in FIG. 3). The graphics buffer may be allocated for each layer. For example, the graphic buffer corresponding to the second layer 402 of the second application 405 and the graphic buffer corresponding to the third layer 403 of the second application 405 may be allocated separately. The buffer management module 412 may allocate a plurality of graphic buffers to one layer according to multiple buffering (eg, double buffer, triple buffer) method. And depending on the vsync cycle, for example, in a flip method, multiple buffers allocated to one layer can be used alternately.

어플리케이션(404, 405)은 레이어에 할당된 버퍼(401, 402, 403)에 이미지를 드로잉할 수 있다. 드로잉이란, 예를 들어, 버퍼에 이미지(또는, 그래픽 데이터)가 전달(또는, 라이팅(writing))되는 동작일 수 있다. 상기 이미지는 어플리케이션이 디스플레이 패널(430)을 통해 제공하고자 하는 이미지일 수 있다. 일 실시 예에 따르면, 상기 이미지는 전체 프레임 영역 중 레이어가 차지하는 영역의 좌표에 따라 상기 그래픽 버퍼에 드로잉될 수 있다. 예를 들어, 특정 레이어의 프레임 영역이 800 * 1280의 해상도를 기준으로 x start = 0, x end = 800, y start = 25, y end = 1280의 좌표를 갖고 있다면, 어플리케이션은 레이어에 할당된 그래픽 버퍼에 해당 좌표에 표시될 최종 이미지를 드로잉할 수 있다. 어플리케이션(또는 레이어)은 상기 이미지를 드로잉한 그래픽 버퍼에 대한 정보(예: 좌표 정보)를 버퍼 관리 모듈(412)로 전송할 수 있다. 예를 들어, 어플리케이션은 드로잉이 완료된 그래픽 버퍼에 대해 버퍼 관리 모듈(412)로 출력 요청(queue) 할 수 있다. 버퍼 관리 모듈(412)은 상기 그래픽 버퍼 출력 요청에 대응하여 해당 그래픽 버퍼를 합성 대기 상태로 관리할 수 있다. Applications 404 and 405 may draw images in buffers 401, 402, and 403 allocated to the layer. Drawing, for example, may be an operation in which an image (or graphic data) is transferred (or written) to a buffer. The image may be an image that the application wishes to provide through the display panel 430. According to one embodiment, the image may be drawn in the graphics buffer according to the coordinates of the area occupied by the layer among the entire frame area. For example, if the frame area of a specific layer has coordinates of x start = 0, x end = 800, y start = 25, y end = 1280 based on a resolution of 800 * 1280, the application You can draw the final image to be displayed at the corresponding coordinates in the buffer. The application (or layer) may transmit information (e.g., coordinate information) about the graphic buffer into which the image is drawn to the buffer management module 412. For example, an application may request output from the buffer management module 412 for a graphics buffer on which drawing has been completed. The buffer management module 412 may manage the graphic buffer in a synthesis standby state in response to the graphic buffer output request.

합성 모듈(416)은 프레임 레이트가 60Hz 일 경우 16.6ms 마다 생성되는 vsync에 의해 트리거되어, 버퍼 관리 모듈(412)에 합성 대기 상태의 그래픽 버퍼가 있는지 여부를 확인할 수 있다. 만일, 합성 대기 상태의 그래픽 버퍼가 없을 경우 합성 모듈(416)은 다음 vsync까지 대기(sleep) 상태로 들어가고, 합성 대기 상태의 그래픽 버퍼가 있을 경우 합성을 수행할 수 있다. 합성 모듈(416)은 합성 대기 상태의 그래픽 버퍼를 가져올 수 있다.When the frame rate is 60Hz, the compositing module 416 is triggered by vsync generated every 16.6ms, and can check whether there is a graphics buffer in the buffer management module 412 waiting for compositing. If there is no graphics buffer in a compositing standby state, the compositing module 416 enters a sleep state until the next vsync, and if there is a graphics buffer in a compositing standby state, compositing can be performed. The compositing module 416 may retrieve a graphics buffer in a compositing standby state.

일 실시 예에 따르면, 합성 모듈(416)은 그래픽 라이브러리(440)를 사용하여 합성을 수행할 수 있다. 상기 그래픽 라이브러리는, 예를 들어, OpenGL ES, Direct3D, 및 Stage3D 등을 포함할 수 있다. 예를 들어, 그래픽 라이브러리는 GPU를 사용하여 합성을 수행할 수 있다.According to one embodiment, the compositing module 416 may perform compositing using the graphics library 440. The graphics library may include, for example, OpenGL ES, Direct3D, and Stage3D. For example, a graphics library may use the GPU to perform compositing.

본 발명의 다양한 실시 예에 따르면 합성 모듈(416)은 실행 중인 레이어(또는 실행 중인 어플리케이션)에 대한 정보가 포함된 레이어 리스트 어레이(layer list array)를 관리할 수 있다. 예를 들어, 어플리케이션(또는 레이어)의 실행 시에 어플리케이션은 frame 구간, source crop, pixel format 등의 정보들을 합성 모듈(416)에 전달할 수 있다. 또한, 어플리케이션은 실행 도중에 frame 구간, source crop, pixel format 등의 정보들의 변경이 생기는 경우, 이를 합성 모듈(416)에 통지할 수 있다.According to various embodiments of the present invention, the composition module 416 may manage a layer list array containing information about the executing layer (or executing application). For example, when executing an application (or layer), the application may transmit information such as frame section, source crop, and pixel format to the compositing module 416. Additionally, if information such as frame section, source crop, or pixel format changes during execution, the application may notify the composition module 416 of this.

합성 모듈(416)은 제1 합성 타입 또는 제2 합성 타입으로 그래픽 데이터들을 합성할 수 있다. 제1 합성 타입은 소프트웨어적으로 합성하는 타입이 될 수 있다. 제1 합성 타입은 그래픽 라이브러리를 사용하여 합성을 수행할 수 있다. 또한 제1 합성 타입은 GPU를 사용하여 합성을 수행할 수도 있다. 예를들면, 제1 합성 타입은 open GL(GLES) 타입이 될 수 있다. 이하의 설명에서 제1 합성 타입은 GLES 타입과 혼용되어 설명될 것이다. 제2 합성 타입은 하드웨어적으로 합성(hardware composition, HWC)하는 타입이 될 수 있다. 제2 합성 타입은 디스플레이 컨트롤러(420)에 포함된 블랜더(424)에 의해 합성을 수행할 수 있다. 이하의 설명에서 제2 합성 타입은 HWC 타입과 혼용되어 설명될 것이다.The synthesis module 416 may synthesize graphic data using a first synthesis type or a second synthesis type. The first synthesis type may be a type synthesized in software. The first compositing type can perform compositing using a graphics library. Additionally, the first synthesis type may perform synthesis using a GPU. For example, the first composite type could be an open GL (GLES) type. In the following description, the first composition type will be described interchangeably with the GLES type. The second composition type may be a hardware composition (HWC) type. The second synthesis type can be synthesized using the blender 424 included in the display controller 420. In the following description, the second composition type will be described interchangeably with the HWC type.

제1 합성 타입(예를들면, GLES 타입)의 레이어들의 그래픽 버퍼를 하나의 프레임 버퍼에 합성하고, 합성된 프레임 버퍼의 정보(메모리 시작 주소, width, height, stride 등의 정보)를 디스플레이 컨트롤러(420)의 제1 plane(421)에게 전달할 수 있다. 예를 들어, 합성 모듈(416)은 합성이 완료된 프레임 버퍼에 대한 정보를 커널을 통해 디스플레이 컨트롤러(420)에 전달할 수 있다. The graphic buffers of the layers of the first synthesis type (e.g., GLES type) are composited into one frame buffer, and information (information such as memory start address, width, height, stride, etc.) of the composite frame buffer is stored in a display controller ( It can be transmitted to the first plane 421 of 420). For example, the composition module 416 may transmit information about a frame buffer for which composition has been completed to the display controller 420 through the kernel.

합성 모듈(416)은 제2 합성 타입(HWC 타입)이면 디스플레이 컨트롤러(420)에서 그래픽 데이터를 합성할 수 있도록 홀드(hold)할 수 있다. 제1 합성 타입은 객체가 2개(예를들면, 어플리케이션(400) 및 윈도우 합성기(410))이므로 그래픽 버퍼를 더블 버퍼로 구성할 수 있다. 그러나 제2 합성 타입은 객체가 3개(예를들면, 어플리케이션(400), 윈도우 합성기(410) 및 디스플레이 컨트롤러(420))이므로, 그래픽 버퍼를 트리플 버퍼를 필요로 할 수 있다. 합성 모듈(416)은 합성 타입에 기반하여 그래픽 데이터를 합성하거나 또는 디스플레이 컨트롤러(420)에서 합성(hardware composition)할 수 있도록 그래픽 데이터를 홀드할 수 있다.If it is the second synthesis type (HWC type), the synthesis module 416 can hold the display controller 420 to synthesize graphic data. Since the first composition type has two objects (for example, the application 400 and the window compositor 410), the graphic buffer can be configured as a double buffer. However, since the second composition type has three objects (e.g., the application 400, the window compositor 410, and the display controller 420), the graphics buffer may require a triple buffer. The composition module 416 may synthesize graphic data based on the composition type or hold the graphic data so that the display controller 420 can perform hardware composition.

그래픽 버퍼 관리 모듈(graphic buffer managing module)(418)은 그래픽 버퍼를 소유하는 객체의 수, 각 객체에서 그래픽 버퍼를 소유하는 시간의 변동성 및/또는 합성 타입의 변경 여부 등을 동적으로 감시하여 그래픽 버퍼의 수를 적절한 수로 관리할 수 있다. The graphic buffer management module 418 dynamically monitors the number of objects owning the graphic buffer, the volatility of the time each object owns the graphic buffer, and/or whether the composition type has changed, etc. to manage the graphic buffer. The number can be managed to an appropriate number.

한 실시예에 따르면, 그래픽 버퍼 관리 모듈(418)은 윈도우 합성기(410)로부터 현재 사용 중인 합성 타입을 확인할 수 있다. 그래픽 버퍼 관리 모듈(418)은 합성 타입이 제2 합성 타입(예를들면, HWC 타입, 그래픽 버퍼를 억세스할 수 있는 객체 수가 3개 이상)이면 그래픽 버퍼를 트리플 버퍼로 설정할 수 있다. 그래픽 버퍼 관리 모듈(418)은 합성 타입이 제1 합성 타입(예를들면, GLES type, 그래픽 버퍼를 억세스할 수 있는 객체 수가 2개 이하)이면 그래픽 버퍼를 더블 버퍼(double buffer)로 설정할 수 있다.According to one embodiment, the graphics buffer management module 418 may check the currently used composition type from the window compositor 410. The graphic buffer management module 418 may set the graphic buffer to a triple buffer if the composition type is a second composition type (eg, HWC type, the number of objects that can access the graphic buffer is 3 or more). The graphic buffer management module 418 can set the graphic buffer to a double buffer if the composition type is the first composition type (e.g., GLES type, the number of objects that can access the graphic buffer is 2 or less). .

한 실시예에 따르면, 그래픽 버퍼 관리 모듈(418)은 제1 합성 타입이면, 각 객체에서 그래픽 버퍼를 소유하는 시간의 변동성에 기반하여 그래픽 버퍼의 수를 동적으로 관리할 수 있다. 전자장치는 버퍼 관리 모듈(412)을 이용하여 각 어플리케이션 (400) 및 윈도우 합성기(410)의 그래픽버퍼를 관리할 수 있다. 각 어플리케이션(400) 및 윈도우 합성기(410)은 그래픽버퍼 획득이 필요한 경우 버퍼 관리 모듈(412)에 요청하고, 그래픽 버퍼의 사용이 종료되면 버퍼 관리 모듈(412)에 그래픽 버퍼의 사용 해제를 전달할 수 있다. 버퍼 관리 모듈(412)는 어플리케이션(400)(예:레이어)에서 그래픽버퍼 할당을 요청하면(예:버퍼 요청(dequeueBuffer)) 그래픽 버퍼를 할당하여 요청한 측에 전달하고, 어플리케이션(400)에서 그래픽버퍼를 회신하면(예:출력 요청(queueBuffer)) 해당 그래픽 버퍼를 합성 대기 상태로 관리할 수 있다.버퍼 요청(dequeueBuffer)은 어플리케이션 레이어에 (어플리케이션이 draw할 ) 그래픽 버퍼를 할당 요청하는 것이 될 수 있으며, 출력 요청(queueBuffer)은 어플리케이션이 드로우(draw)한 그래픽 버퍼를 합성 모듈에 전달(예를들면, 합성모듈이 합성하게 함)하는 것이 될 수 있다.According to one embodiment, the graphics buffer management module 418 may dynamically manage the number of graphics buffers based on the variability of the time each object owns the graphics buffer if it is a first composite type. The electronic device can manage the graphic buffers of each application 400 and the window compositor 410 using the buffer management module 412. When each application 400 and the window compositor 410 need to acquire a graphics buffer, they request the buffer management module 412, and when the use of the graphics buffer ends, they can transmit the release of use of the graphics buffer to the buffer management module 412. there is. When the application 400 (e.g., layer) requests graphic buffer allocation (e.g., buffer request (dequeueBuffer)), the buffer management module 412 allocates the graphic buffer and delivers it to the requesting side, and the application 400 generates the graphic buffer. If you reply (e.g. output request (queueBuffer)), the corresponding graphics buffer can be managed in a composition standby state. A buffer request (dequeueBuffer) can be a request to allocate a graphics buffer (for the application to draw) to the application layer. , the output request (queueBuffer) may be passing the graphics buffer drawn by the application to the composition module (e.g., allowing the synthesis module to synthesize).

그래픽 버퍼 관리 모듈(418)은 버퍼 관리 모듈(412)이 각 객체 (안드로이드 OS인 경우, App, SurfaceFlinger)로부터 요청받은 정보 (dequeueBuffer 및 queueBuffer가 발생한 시간) 로부터, 각 객체가 그래픽버퍼를 소유한 시간(time_queueBuffer - time_dequeueBuffer)을 측정할 수 있다. 제1 합성 타입(예를들면, 그래픽버퍼 소유 객체가 2개인 GLES type 어플리케이션)인 경우, 그래픽 버퍼 관리 모듈(418)은 그래픽 버퍼 소유시간이 일정하면 그래픽 버퍼를 더블 버퍼로 설정할 수 있으며, 그래픽 버퍼를 소유하는 시간이 일정하지 않으면 그래픽 버퍼를 트리플 버퍼로 적용할 수 있다. The graphic buffer management module 418 calculates the time when each object owns a graphic buffer from the information (time when dequeueBuffer and queueBuffer occurred) requested by the buffer management module 412 from each object (App, SurfaceFlinger in the case of Android OS). (time_queueBuffer - time_dequeueBuffer) can be measured. In the case of the first composite type (e.g., a GLES type application with two graphic buffer owning objects), the graphic buffer management module 418 can set the graphic buffer as a double buffer if the graphic buffer ownership time is constant, and the graphic buffer can be set to a double buffer. If the possession time is not constant, the graphics buffer can be applied as a triple buffer.

한 실시예에 따르면, 그래픽 버퍼 관리 모듈(418)은 그래픽 처리 동작을 수행하는 중에 합성 타입이 변경되면 동적으로 그래픽 버퍼의 수를 조절할 수 있다. 예를들면, 윈도우 합성기(410)은 제1 합성 타입(GLES type)에서 제2 합성 타입(HWC type)으로 변경되는 것을 알 수 있다. 그래픽 버퍼 관리 모듈(418)은 합성 타입이 변경되면 그래픽성능 저하 없이 변경되는 합성타입에 기반하여 그래픽 버퍼 개수를 적절한 타이밍에 변경시킬 수 있다. According to one embodiment, the graphics buffer management module 418 may dynamically adjust the number of graphics buffers when the composition type changes while performing a graphics processing operation. For example, it can be seen that the window compositor 410 changes from the first composition type (GLES type) to the second composition type (HWC type). When the composition type is changed, the graphics buffer management module 418 can change the number of graphics buffers at an appropriate timing based on the changed composition type without deteriorating graphics performance.

한 실시예에 따르면, 그래픽 버퍼 관리 모듈(428)은 GLES 합성 타입의 그래픽을 처리하는 중에 그래픽 버퍼의 소유 시간에 기반하여 그래픽 버퍼의 수를 동적으로 관리할 수 있다. GLES 합성 타입의 그래픽을 처리하는 중에 객체의 그래픽 소유 시간이 일정하지 않은 상태로 변화되면, 그래픽 버퍼 관리 모듈(418)은 그래픽 버퍼를 더블 버퍼에서 트리플 버퍼로 변경하여 관리할 수 있다. GLES 합성 타입의 그래픽을 처리하는 중에 객체의 그래픽 소유 시간이 일정한 상태로 변화되면, 그래픽 버퍼 관리 모듈(418)은 그래픽 버퍼를 트리플 버퍼에서 더블 버퍼로 변경하여 관리할 수 있다.According to one embodiment, the graphics buffer management module 428 may dynamically manage the number of graphics buffers based on the possession time of the graphics buffer while processing GLES composite type graphics. If the graphic possession time of an object changes to an irregular state while processing GLES composite type graphics, the graphic buffer management module 418 can manage the graphic buffer by changing it from a double buffer to a triple buffer. If the graphic possession time of an object changes to a constant state while processing GLES composite type graphics, the graphic buffer management module 418 can manage the graphic buffer by changing it from a triple buffer to a double buffer.

본 발명의 다양한 실시 예에 따르면, 디스플레이 컨트롤러(420)는 2개의 버퍼를 이용하는 더블 버퍼링(double buffering) 기술뿐만 아니라, 3개의 버퍼를 이용하는 트리플 버퍼링(triple buffering) 기술 또는 4개 이상의 버퍼를 이용하는 기술을 이용할 수도 있다.According to various embodiments of the present invention, the display controller 420 uses not only double buffering technology using two buffers, but also triple buffering technology using three buffers, or technology using four or more buffers. You can also use .

제1 plane(421)은 제1 레이어(401) 및 제2 레이어(402)의 이미지가 합성된 프레임 버퍼를 DMA(direct memory access)로 fetch할 수 있다. 또한, 유사하게 제2 plane(422)은 제3 레이어(403)의 그래픽 버퍼를 DMA로 fetch할 수 있다.The first plane 421 can fetch a frame buffer in which images of the first layer 401 and the second layer 402 are combined using direct memory access (DMA). Additionally, similarly, the second plane 422 can fetch the graphics buffer of the third layer 403 through DMA.

블렌더(424)는 제1 plane(421) 및 제2 plane(422)에서 fetch된 각각의 프레임 버퍼와 그래픽 버퍼를 합성할 수 있고, 합성 결과물인 최종 이미지를 내부 메모리(426)에 저장할 수 있다.The blender 424 can synthesize each frame buffer and graphic buffer fetched from the first plane 421 and the second plane 422, and store the final image resulting from the synthesis in the internal memory 426.

블렌더(424)는 매 vsync 마다 상기와 같은 합성을 수행할 수 있다. 예를 들어, 블렌더(424)는 제1 vsync에 제1 plane(421)의 프레임 버퍼와 제2 plane(422)의 그래픽 버퍼를 합성하고, 제2 vsync에 제1 plane(421)의 프레임 버퍼와 제2 plane(422)의 그래픽 버퍼를 합성할 수 있다. The blender 424 can perform the above synthesis every vsync. For example, the blender 424 combines the frame buffer of the first plane 421 and the graphics buffer of the second plane 422 in the first vsync, and the frame buffer of the first plane 421 and the graphics buffer in the second vsync. The graphics buffer of the second plane 422 can be synthesized.

다만, 본 발명의 다양한 실시 예에 따르면, 제2 vsync에 제1 레이어(401) 및 제2 레이어(402)의 이미지가 업데이트되지 않고, 제3 레이어(403)의 이미지만 업데이트된 경우, 합성 모듈(416)은 제1 레이어(401) 및 제2 레이어(402)의 이미지에 대한 합성을 수행하지 않을 수 있다. 또한, 이 경우, 블렌더(424)는 제1 vsync에서의 프레임 버퍼(제1 레이어(401) 및 제2 레이어(402)의 합성 이미지)를 재활용하여, 이미지가 업데이트된 제3 레이어(403)의 그래픽 버퍼와 합성을 수행할 수 있다. However, according to various embodiments of the present invention, when the images of the first layer 401 and the second layer 402 are not updated in the second vsync, and only the image of the third layer 403 is updated, the synthesis module 416 may not perform synthesis of the images of the first layer 401 and the second layer 402. Additionally, in this case, the blender 424 recycles the frame buffer (composite image of the first layer 401 and the second layer 402) from the first vsync to display the image of the third layer 403 with the updated image. Graphics buffers and compositing can be performed.

디스플레이 컨트롤러(420)는 매 vsync 마다 내부 메모리(426)에 있는 이미지를 물리적으로 연결된 디스플레이 패널(430)으로 전송할 수 있다. 디스플레이 컨트롤러(420)와 디스플레이 패널(430)을 물리적으로 연결하는 인터페이스는, 예를 들어, MIPI-DSI, HDMI, 및 eDP (embedded Display Port) 등을 포함할 수 있다. 디스플레이 컨트롤러(420)는 각 인터페이스의 프로토콜에 맞게 프레임 버퍼의 이미지를 패키징하여 디스플레이 패널(430)로 전송할 수 있다.The display controller 420 may transmit the image in the internal memory 426 to the physically connected display panel 430 every vsync. Interfaces that physically connect the display controller 420 and the display panel 430 may include, for example, MIPI-DSI, HDMI, and eDP (embedded display port). The display controller 420 can package the image in the frame buffer according to the protocol of each interface and transmit it to the display panel 430.

본 발명의 다양한 실시예에 따른 전자장치는 어플리케이션을 처리하는 상태에서 합성 타입 및/또는 그래픽 버퍼 소유 시간에 기반하여 그래픽 버퍼의 수를 동적으로 관리할 수 있다.Electronic devices according to various embodiments of the present invention may dynamically manage the number of graphics buffers based on composition type and/or graphics buffer possession time while processing an application.

도 5는 본 발명의 다양한 실시 예에 따른, 전자 장치의 블록도를 나타낸 도면이다.Figure 5 is a block diagram of an electronic device according to various embodiments of the present invention.

도 5를 참조하면, AP(application processor)(500)(예를 들어, 도 1의 프로세서(120))은 프로그램 모듈(510), 제1 합성기(520), 및 제2 합성기(530)를 포함할 수 있다. AP(500)는 SoC(system on chip)로 구성되어 제1 합성기(520) 및 제2 합성기(530)를 실장할 수 있다.Referring to FIG. 5, an application processor (AP) 500 (e.g., processor 120 of FIG. 1) includes a program module 510, a first synthesizer 520, and a second synthesizer 530. can do. The AP 500 is composed of a system on chip (SoC) and can mount the first synthesizer 520 and the second synthesizer 530.

본 발명의 다양한 실시 예에 따르면, 제1 합성기(520)는 GPU(graphic processing unit)일 수 있다. 또한, 제2 합성기(530)는 디스플레이 컨트롤러에 구성될 수 있다. 이와는 달리, 제2 합성기(530)는 I/O 컨트롤러(input/output controller)에 구성될 수도 있다. 본 발명의 다양한 실시 예에 따르면, 제2 합성기(530)는 독립 IP로서 AP(500) 상에 구현될 수도 있다.According to various embodiments of the present invention, the first synthesizer 520 may be a graphics processing unit (GPU). Additionally, the second synthesizer 530 may be configured in the display controller. Alternatively, the second synthesizer 530 may be configured as an I/O controller (input/output controller). According to various embodiments of the present invention, the second synthesizer 530 may be implemented on the AP 500 as an independent IP.

본 발명의 다양한 실시예에 따른 전자장치는 상황에 따라 버퍼의 수를 동적으로 제어하여 성능 저하를 방지하면서 메모리를 효율적으로 사용할 수 있다. 본 발명의 다양한 실시예에 따른 전자장치는 그래픽 데이터를 처리할 때, 그래픽 데이터를 버퍼링하기 위한 그래픽 버퍼의 수를 동적으로 제어할 수 있다. Electronic devices according to various embodiments of the present invention can efficiently use memory while preventing performance degradation by dynamically controlling the number of buffers depending on the situation. When processing graphics data, electronic devices according to various embodiments of the present invention can dynamically control the number of graphics buffers for buffering graphics data.

한 실시예에 따르면, 전자장치는 어플리케이션의 합성 타입(composition type)에 기반하여 동적으로 그래픽 버퍼를 더블 버퍼 또는 트리플 버퍼로 적용할 수 있다. According to one embodiment, the electronic device may dynamically apply the graphics buffer as a double buffer or triple buffer based on the composition type of the application.

한 실시예에 따르면, 전자장치는 더블 버퍼링에 기반하여 그래픽 데이터를 처리할 때 그래픽 버퍼의 소유 시간을 분석하며, 그래픽 버퍼의 소유 시간이 일정하지 않으면 트리플 버퍼로 전환할 수 있다. According to one embodiment, the electronic device analyzes the possession time of the graphics buffer when processing graphics data based on double buffering, and may switch to a triple buffer if the possession time of the graphics buffer is not constant.

한 실시예에 따르면, 전자장치는 합성 타입에 기반하여 버퍼를 할당하여 그래픽 데이터를 처리하며, 그래픽 데이터를 처리하는 중에 합성 타입이 변경되면 변경되는 합성 타입에 기반하여 그래픽 버퍼의 수를 조절할 수 있다.According to one embodiment, the electronic device processes graphics data by allocating buffers based on the composition type, and when the composition type changes while processing graphics data, the number of graphics buffers can be adjusted based on the changed composition type. .

도 6은 그래픽 시스템에서 그래픽 데이터를 처리하는 더블 버퍼링의 기본 동작을 도시하는 도면이다.FIG. 6 is a diagram illustrating the basic operation of double buffering for processing graphics data in a graphics system.

전자장치는 그래픽 데이터를 처리할 때, 더블 버퍼링 방법을 사용할 수 있다. 더블 버퍼링(double buffering) 방법은 컴퓨터(computer science) 분야에서 프로듀서(producer)(610)가 버퍼(620)에 기록(write)한 데이터를 컨슈머(consumer)(640)가 읽을때(read), 프로듀서(610)와 컨슈머(640)가 동시에 동작할 수 있도록 지원하는 버퍼링 방법이 될 수 있다. 버퍼(620)은 제1버퍼(623) 및 제2 버퍼(625)의 더블 버퍼를 포함할 수 있다. 예를 들면 600과 같이 프로듀서(610)가 제1버퍼(back buffer)(623)에 그래픽 데이터를 기록할 때, 컨슈머(630)는 제2 버퍼(front buffer)(625)의 데이터를 읽을 수 있다. 프로듀서(610)가 제1 버퍼(623)에 기록하는 작업이 종료될 때, 컨슈머(630)는 제2 버퍼(625)에 기록된 데이터의 리드를 완료할 수 있다. 프로듀서(610)가 제1 버퍼(623)에 기록하는 작업을 완료하면, 650에 도시된 바와 같이 프로듀서(610) 및 컨슈머(630)는 소유하는 제1 버퍼(623) 및 제2 버퍼(625)를 교환(flip)할 수 있다. 버퍼(620)의 역할이 교환되면(flip), 프로듀서(610)는 제2 버퍼(back buffer)(625)에 데이터를 라이트하고, 동시에 컨슈머(630)는 제1 버퍼(front buffer)(623)에 기록된 데이터를 리드할 수 있다.Electronic devices may use a double buffering method when processing graphic data. The double buffering method is used in the field of computer science when the consumer 640 reads the data written by the producer 610 to the buffer 620. It can be a buffering method that supports the 610 and the consumer 640 to operate simultaneously. The buffer 620 may include a double buffer of a first buffer 623 and a second buffer 625. For example, when the producer 610 records graphic data in the first buffer (back buffer) 623, as in 600, the consumer 630 can read the data in the second buffer (front buffer) 625. . When the producer 610 finishes writing to the first buffer 623, the consumer 630 can complete reading the data written to the second buffer 625. When the producer 610 completes the recording operation in the first buffer 623, the producer 610 and the consumer 630 own the first buffer 623 and the second buffer 625, as shown at 650. can be exchanged (flip). When the roles of the buffer 620 are flipped, the producer 610 writes data to the second buffer (back buffer) 625, and at the same time, the consumer 630 writes data to the first buffer (front buffer) 623. You can read the data recorded in .

도 7은 어플리케이션과 윈도우 합성기 간의 더블 버퍼링의 동작을 설명하는 도면이다. Figure 7 is a diagram explaining the operation of double buffering between an application and a window compositor.

도 7을 참조하면, 일반 OS 의 그래픽 시스템에서 복수의 어플리케이션(application)들과 윈도우 합성기(windows compositor)가 더블 버퍼링(double buffering) 동작을 실행하면서 그래픽 데이터를 처리할 수 있다. 복수의 어플리케이션(710, 715)들은 하나의 레이어 또는 복수의 레이어들로 표현되는 그래픽 이미지들을 렌더링할 수 있다. 도 7에서 A 어플리케이션(710) 및 B 어플리케이션(715)는 하나의 레이어로 그래픽 이미지를 표현할 수 있으며, 각각 프로듀서(producer)로 동작될 수 있다. Referring to FIG. 7, in the graphics system of a general OS, a plurality of applications and a windows compositor can process graphics data while executing a double buffering operation. A plurality of applications 710 and 715 may render graphic images expressed as one layer or multiple layers. In FIG. 7, application A 710 and application B 715 can express a graphic image in one layer and can each be operated as a producer.

도 7의 700에서 A 어플리케이션(710)은 버퍼(back buffer)(721)에 그래픽 데이터를 라이트하고, 윈도우 합성기(730)은 버퍼(front buffer)(723)에 기록된 그래픽 데이터를 리드할 수 있다. 또한 도 7의 700에서 B 어플리케이션(715)는 버퍼 (back buffer)(725)에 그래픽 데이터를 라이트하고, 윈도우 합성기(730)은 버퍼 (front buffer)(723)에 기록된 그래픽 데이터를 리드할 수 있다. 윈도우 합성기(730) 프론트 버퍼인 버퍼(723) 및 버퍼(727)에 기록된 그래픽 데이터를 리드하여 컴포지션할 수 있다. At 700 in FIG. 7, the A application 710 writes graphic data to the back buffer 721, and the window compositor 730 can read the graphic data written to the buffer (front buffer) 723. . Additionally, at 700 in FIG. 7, the B application 715 writes graphic data to the back buffer 725, and the window compositor 730 can read the graphic data written to the buffer (front buffer) 723. there is. Graphic data recorded in the buffer 723 and buffer 727, which are front buffers of the window compositor 730, can be read and composed.

A 어플리케이션(710) 및 B 어플리케이션(715)이 각각 버퍼(721) 및 버퍼(725)에 데이터를 기록하는 작업을 완료하면, 도 7의 750에 도시된 바와 같이 A 어플리케이션(710) 및 B 어플리케이션(715)와 윈도우 합성기(730)는 버퍼(720)의 역할을 교환(flip)할 수 있다. 버퍼(720)의 역할이 플립되면, 도 7의 750에서와 같이 A 어플리케이션(710)은 버퍼(back buffer)(723)에 그래픽 데이터를 라이트하고, B 어플리케이션(715)는 버퍼(back buffer)((727)에 그래픽 데이터를 라이트할 수 있으며, 윈도우 합성기(730)는 버퍼(723) 및 버퍼(725)에 기록된 그래픽 데이터를 리드할 수 있다. 윈도우 합성기(730)는 프론트 버퍼인 버퍼(721) 및 버퍼(725)에 기록된 그래픽 데이터를 리드하여 컴포지션할 수 있다. When the A application 710 and the B application 715 complete the task of recording data in the buffer 721 and the buffer 725, respectively, as shown at 750 in FIG. 7, the A application 710 and the B application ( 715) and the window compositor 730 can flip the roles of the buffer 720. When the role of the buffer 720 is flipped, the A application 710 writes graphic data to the back buffer 723, as shown in 750 of FIG. 7, and the B application 715 writes the buffer (back buffer) ( Graphic data can be written to 727, and the window compositor 730 can read graphic data recorded in the buffer 723 and buffer 725. The window compositor 730 can write buffer 721, which is the front buffer. ) and the graphic data recorded in the buffer 725 can be read and composed.

윈도우 합성기(730)는 GLES 합성 타입의 그래픽 데이터를 처리하는 경우, 화면 위에 겹쳐있는 모든 윈도우들을 하나의 스크린 위에 합쳐서 보여주는 역할을 할 수 있다. 예를 들면, 두개의 웹 브라우저를 겹치게 띄워놓고 하나의 웹 브라우저를 선택하면, 선택된 웹 브라우저가 앞으로 나와서 뒤에 있는 웹브라우저를 가리게 할 수 있다. 반대로 뒤에 있는 웹브라우저를 선택하면, 뒤에 있던 웹 브라우저가 앞으로 나와서 이전에 앞에 있던 웹브라우저를 가리게 할 수 있다. 윈도우 합성기(730)는 모든 윈도우들의 우선순위를 이용하여 하나의 스크린 위에 차곡차곡 쌓은 것처럼 결과화면을 만들어주는 역할을 할 수 있다. When processing graphic data of the GLES composition type, the window compositor 730 can play the role of combining and displaying all windows overlapping on the screen on one screen. For example, if you have two web browsers overlapping and select one web browser, the selected web browser can come to the front and cover the web browser behind it. Conversely, if you select the web browser in the back, the web browser in the back can come to the front and cover the web browser that was previously in front. The window compositor 730 can use the priorities of all windows to create a result screen as if they were stacked on one screen.

도 8은 윈도우 합성기와 디스플레이 간의 더블 버퍼링 동작을 도시하는 도면이다.Figure 8 is a diagram illustrating a double buffering operation between a window compositor and a display.

도 8을 참조하면, OS 그래픽 시스템에서 윈도우 합성기(810)와 디스플레이(830)는 제1 버퍼 (823) 및 제2 버퍼(825)로 구성되는 프레임 버퍼(820)을 이용하여 더블 버퍼링 동작을 수행할 수 있다. 윈도우 합성기(810)은 도 7의 윈도우 합성기(730)이 될 수 있다. 도 8의 800에 도시된 바와 같이, 윈도우 합성기(810)이 제1 프레임 버퍼(back buffer)(823)에 데이터를 기록하면, 디스플레이(830)는 제2 프레임 버퍼(front buffer)(820)에 기록된 데이터를 리드할 수 있다. 이후 버퍼 플립 동작을 수행하면, 도 8의 850에 도시된 바와 같이, 윈도우 합성기(810) 제2 프레임 버퍼(back buffer)(825)에 데이터를 기록하고, 디스플레이(830)는 제1 프레임 버퍼(front buffer)(823)에 기록된 데이터를 리드할 수 있다. 도 8의 800 및 850에 도시된 바와 같이 윈도우 합성기(810)와 디스플레이(830)는 프레임 버퍼(820)를 더블 버퍼링 방법으로 억세스할 수 있다. 이때 윈도우 합성기(810)는 도 7에 도시된 바와 같이 그래픽 버퍼(예를들면, 도 7의 그래픽 버퍼(720))에 대해 컨슈머(consumer) 기능을 수행하지만, 도 8에서는 프레임 버퍼(820)에 대해 프로듀서(producer) 기능을 수행할 수 있다. Referring to FIG. 8, in the OS graphics system, the window compositor 810 and the display 830 perform a double buffering operation using the frame buffer 820 consisting of a first buffer 823 and a second buffer 825. can do. The window compositor 810 may be the window compositor 730 of FIG. 7 . As shown at 800 in FIG. 8, when the window compositor 810 writes data to the first frame buffer (back buffer) 823, the display 830 writes data to the second frame buffer (front buffer) 820. You can read recorded data. After performing the buffer flip operation, as shown at 850 in FIG. 8, data is recorded in the second frame buffer (back buffer) 825 of the window compositor 810, and the display 830 records the first frame buffer (back buffer) 825. The data recorded in the front buffer (823) can be read. As shown at 800 and 850 in FIG. 8, the window compositor 810 and the display 830 can access the frame buffer 820 using a double buffering method. At this time, the window compositor 810 performs a consumer function for the graphics buffer (e.g., the graphics buffer 720 in FIG. 7) as shown in FIG. 7, but in FIG. 8, the window compositor 810 performs a consumer function for the frame buffer 820 in FIG. Can perform producer function.

이하의 설명에서 윈도우 합성기(예를들면 도 4의 윈도우 합성기(410))의 합성 모듈(예를들면, 도 4의 합성 모듈(416))은 서피스플링거(SurfaceFlinger)를 예를들어 설명될 것이다. 서피스플링거(SurfaceFlinger)는 복수의 레이어(또는 window 또는 surface)들을 합쳐(composition) 하나의 화면으로 출력(예를들면 프레임 버퍼에 라이트)하는 기능을 수행할 수 있다. 예를들면, 서피스플링거는 이미지의 제1 서피스와 다른 내용(예를들면 GUI)의 제2 서피스를 합쳐 하나의 화면으로 합성하는 기능을 수행할 수 있다. In the following description, the compositing module (e.g., the compositing module 416 in FIG. 4) of the window compositor (e.g., the window compositor 410 in FIG. 4) will be explained by taking SurfaceFlinger as an example. . SurfaceFlinger can perform the function of combining multiple layers (or windows or surfaces) and outputting them on a single screen (for example, writing to a frame buffer). For example, Surface Flinger can perform the function of combining the first surface of an image and the second surface of other content (e.g. GUI) into one screen.

윈도우 합성기의 합성 모듈(예를들면 서피스플링거)는 제1 합성 타입 또는 제2 합성 타입으로 그래픽 데이터들을 합성할 수 있다. 제1 합성 타입은 소프트웨어적으로 합성하는 타입이 될 수 있다. 제1 합성 타입은 그래픽 라이브러리를 사용하여 합성을 수행할 수 있다. 또한 제1 합성 타입은 GPU를 사용하여 합성을 수행할 수도 있다. 제2 합성 타입은 하드웨어적으로 합성(hardware composition, HWC)하는 타입이 될 수 있다. 제2 합성 타입은 디스플레이 컨트롤러(420)에 포함된 블랜더(424)에 의해 합성을 수행할 수 있다. The compositing module of the Windows compositor (eg, Surface Flinger) can compose graphic data using a first compositing type or a second compositing type. The first synthesis type may be a type synthesized in software. The first compositing type can perform compositing using a graphics library. Additionally, the first synthesis type may perform synthesis using a GPU. The second composition type may be a hardware composition (HWC) type. The second synthesis type can be synthesized using the blender 424 included in the display controller 420.

이하의 설명에서 제1 합성 타입은 open GL(GLES) 타입을 예로들어 설명될 것이며, 제2 합성 타입은 HWC 타입을 예로들어 설명될 것이다. In the following description, the first composition type will be explained using the open GL (GLES) type as an example, and the second composition type will be explained using the HWC type as an example.

도 9는 안드로이드 OS 시스템에서 더블버퍼링 동작을 도시하는 도면이다.Figure 9 is a diagram showing double buffering operation in the Android OS system.

도 9를 참조하면, 어플리케이션(910)과 서피스플링거(SurfaceFlinger) (930)는 그래픽 데이터를 더블 버퍼링 동작을 실행하여 억세스할 수 있다. 서피스플링거(930)는 적어도 하나의 어플리케이션에서 그래픽 버퍼(920)에 기록되는 데이터를 리드할 수 있다. 서피스플링거(930)은 프레임 버퍼(940)에 데이터를 라이트할 수 있으며, 디스플레이(950)은 프레임 버퍼(940)에 기록된 데이터를 리드할 수 있다. Referring to FIG. 9, the application 910 and SurfaceFlinger 930 can access graphic data by performing a double buffering operation. The surface linger 930 can read data written to the graphics buffer 920 in at least one application. The surface linger 930 can write data to the frame buffer 940, and the display 950 can read data written to the frame buffer 940.

도 9에 도시된 바와 같이, 전자장치는 GLES 합성 타입인 경우, 그래픽 버퍼(920) 및 프레임 버퍼(940)을 더블 버퍼링 방법으로 동작시킬 수 있다. 도 9의 900에서와 같이 제1 그래픽 버퍼 및 제1 프레임 버퍼는 백버퍼(back buffer)로 동작될 수 있으며, 제2 그래픽 버퍼 및 제2 프레임 버퍼는 프론트 버퍼(front buffer)로 동작될 수 있다. 그리고 백 버퍼에 그래픽 데이터를 라이트하고 프론트 버퍼에 기록된 그래픽 데이터의 리드 동작이 종료되면, 전자장치는 도 9의 960과 같이 그래픽 버퍼(920) 및 프레임 버퍼(950)의 역할을 플립(flip)시킬 수 있다. 그러면 제2 그래픽 버퍼 및 제2 프레임 버퍼는 백 버퍼로 동작될 수 있으며, 제1 그래픽 버퍼 및 제1 프레임 버퍼는 프론트 버퍼로 동작될 수 있다.As shown in FIG. 9, when the electronic device is a GLES composition type, the graphic buffer 920 and the frame buffer 940 can be operated using the double buffering method. As shown at 900 in FIG. 9, the first graphic buffer and the first frame buffer can be operated as a back buffer, and the second graphic buffer and the second frame buffer can be operated as a front buffer. . And when the graphics data is written to the back buffer and the read operation of the graphics data written to the front buffer is completed, the electronic device flips the roles of the graphics buffer 920 and the frame buffer 950 as shown at 960 in FIG. 9. You can do it. Then, the second graphic buffer and the second frame buffer can be operated as a back buffer, and the first graphic buffer and the first frame buffer can be operated as a front buffer.

도 9에서 서피스플링거(930)은 그래픽 버퍼(920)에 대해서는 기록된 데이터를 리드하는 컨슈머로 동작하고, 프레임 버퍼(950)에 대해서는 데이터를 기록하는 프로듀서로 동작할 수 있다. In FIG. 9, the surface linger 930 may operate as a consumer that reads data written to the graphic buffer 920, and may operate as a producer that records data to the frame buffer 950.

도 10a - 도 10c는 전자장치에서 트리플 버퍼로 구성되는 그래픽 버퍼의 동작을 설명하기 위한 도면이다. 안드로이드 OS에서는 그래픽 버퍼를 더블 버퍼링 또는 트리플 버퍼링 방법으로 사용할 수 있다. 예를들면, 안드로이드 OS는 버전 4.0 까지는 그래픽 버퍼를 더블 버퍼링 방법으로 사용하였으며, 버전 4.1(Jellybean 버전에서 Project Butter를 적용)에서부터 트리플 버퍼링을 사용할 수 있다. 그래픽버퍼를 소유하는 객체가 두 개 (App, SurfaceFlinger)이면 그래픽 버퍼를 더블 버퍼로 구현하는 것이 효과적일 수 있다. HWC 타입의 합성을 지원하면 그래픽버퍼를 소유하는 객체가 세 개 (App, SurfaceFlinger, Display panel)가 되므로, 전자장치는 그래픽 버퍼를 트리플 버퍼로 구성하는 것이 효율적일 수 있다. FIGS. 10A to 10C are diagrams for explaining the operation of a graphics buffer consisting of a triple buffer in an electronic device. In Android OS, the graphics buffer can be used using double buffering or triple buffering methods. For example, Android OS used the graphics buffer as a double buffering method until version 4.0, and triple buffering can be used starting from version 4.1 (Jellybean version applies Project Butter). If there are two objects (App, SurfaceFlinger) that own the graphic buffer, it can be effective to implement the graphic buffer as a double buffer. When HWC type synthesis is supported, there are three objects that own the graphic buffer (App, SurfaceFlinger, Display panel), so it can be efficient for electronic devices to configure the graphic buffer as a triple buffer.

도 10a를 참조하면, 제1 주기(예를들면, Vsync 1)에서, 어플리케이션(1010)은 제1 그래픽 버퍼(1043)에서 그래픽 데이터(surface, layer)를 기록(draw, write)하고, 서피스플링거(1020)은 제2 그래픽 버퍼(1045)에 기록된 그래픽 데이터를 홀드(hold)할 수 있으며, 디스플레이(1030)은 제3 그래픽 버퍼(1047)에 기록된 그래픽 데이터를 리드하여 처리(예를들면, blending) 및 표시할 수 있다. 이때 서피스플링거(1020)은 제2 그래픽 버퍼(1045)에 기록된 그래픽 데이터의 메터 정보를 디스플레이(1030)에 전달할 수 있다. 디스플레이(1030)은 디스플레이 컨트롤러 및 디스플레이 패널을 포함할 수 있다. Referring to FIG. 10A, in the first cycle (e.g., Vsync 1), the application 1010 draws (draws, writes) graphics data (surface, layer) in the first graphics buffer 1043 and The ringer 1020 can hold the graphic data written in the second graphic buffer 1045, and the display 1030 reads the graphic data written in the third graphic buffer 1047 and processes it (for example, For example, blending) and display. At this time, the surface linger 1020 can transmit the meta information of the graphic data recorded in the second graphic buffer 1045 to the display 1030. The display 1030 may include a display controller and a display panel.

도 10b를 참조하면, 제2 주기(예를들면, Vsync 2)에서, 어플리케이션(1010)은 제2 그래픽 버퍼(1045)에서 그래픽 데이터를 기록하고, 서피스플링거(1020)은 제3 그래픽 버퍼(1047)에 기록된 그래픽 데이터를 홀드할 수 있으며, 디스플레이(1030)은 제1 그래픽 버퍼(1043)에 기록된 그래픽 데이터를 리드하여 처리 및 표시할 수 있다. 이때 서피스플링거(1020)은 제3 그래픽 버퍼(1047)에 기록된 그래픽 데이터의 메터 정보를 디스플레이(1030)에 전달할 수 있다. Referring to FIG. 10B, in the second cycle (e.g., Vsync 2), the application 1010 records graphics data in the second graphics buffer 1045, and the surface linger 1020 records graphics data in the third graphics buffer (1045). The graphic data recorded in 1047 can be held, and the display 1030 can read, process, and display the graphic data recorded in the first graphic buffer 1043. At this time, the surface linger 1020 can transmit the meta information of the graphic data recorded in the third graphic buffer 1047 to the display 1030.

도 10c를 참조하면, 제3 주기(예를들면, Vsync 3)에서, 어플리케이션(1010)은 제3 그래픽 버퍼(1047)에서 그래픽 데이터를 기록하고, 서피스플링거(1020)은 제1 그래픽 버퍼(1043)에 기록된 그래픽 데이터를 홀드할 수 있으며, 디스플레이(1030)은 제2 그래픽 버퍼(1045)에 기록된 그래픽 데이터를 리드하여 처리 및 표시할 수 있다. 이때 서피스플링거(1020)은 제1 그래픽 버퍼(1041)에 기록된 그래픽 데이터의 메터 정보를 디스플레이(1030)에 전달할 수 있다. Referring to FIG. 10C, in the third cycle (e.g., Vsync 3), the application 1010 records graphics data in the third graphics buffer 1047, and the surface linger 1020 records graphics data in the first graphics buffer (1047). The graphic data recorded in the second graphic buffer 1043 can be held, and the display 1030 can read, process, and display the graphic data recorded in the second graphic buffer 1045. At this time, the surface linger 1020 can transmit the meta information of the graphic data recorded in the first graphic buffer 1041 to the display 1030.

도 11은 그래픽 버퍼의 증가에 따른 지연 시간을 설명하기 위한 도면이다. 도 11에서 서피스 플링거는 도 4의 합성 모듈(416)의 예가 될 수 있다. 이하의 설명에서 합성 모듈은 서피스플링거인 예로 설명될 것이다.Figure 11 is a diagram to explain the delay time as the graphics buffer increases. The surface flinger in FIG. 11 may be an example of the compositing module 416 of FIG. 4. In the following description, the synthesis module will be explained as an example of a surface flinger.

도 11을 참조하면, 그래픽 버퍼를 더블 버퍼(예를들면, GB1, GB2)로 구성하고 어플리케이션이 1110과 같이 그래픽 버퍼에 그래픽 데이터를 기록하고, 서피스플링거가 1120과 같이 그래픽 버퍼에 기록된 그래픽 데이터를 리드할 수 있다. 이런 경우, 어플리케이션이 그래픽 데이터를 기록한 그래픽 버퍼 GB1 이 서피스플링거에 의해 리드될 때까지 지연시간(1115) 이 소요되며, 이 지연시간 (1115) 이 길수록 input lag 은 증가한다. 그러나 그래픽 버퍼를 트리플 버퍼로 구성하고, 어플리케이션이 1150과 같이 그래픽 버퍼에 그래픽 데이터를 기록하고, 서피스플링거가 1160과 같이 그래픽 버퍼에 기록된 그래픽 데이터를 리드할 수 있다. 이런 경우, 어플리케이션이 그래픽 데이터를 기록한 그래픽 버퍼 GB3 이 서피스플링거에 의해 리드될 때까지 지연시간(1155) 이 소요되며, 더블 버퍼를 사용할 때 발생한 지연시간 (1115) 보다 긴 지연시간을 가지므로, input lag 이 증가됨을 알 수 있다.Referring to FIG. 11, the graphics buffer is configured as a double buffer (e.g., GB1, GB2), the application records graphics data in the graphics buffer as in 1110, and the Surface Flinger records the graphics recorded in the graphics buffer as in 1120. You can lead the data. In this case, it takes a delay time (1115) until the graphics buffer GB1, where the application recorded graphics data, is read by the surface flinger. The longer this delay time (1115) is, the more the input lag increases. However, if the graphic buffer is configured as a triple buffer, the application can record graphic data in the graphic buffer, such as 1150, and the Surface Flinger can read the graphic data written in the graphic buffer, such as 1160. In this case, it takes a delay time (1155) until the graphics buffer GB3, where the application recorded graphics data, is read by the Surface Slinger, and the delay time is longer than the delay time (1115) that occurs when using a double buffer. You can see that input lag increases.

따라서 전자장치는 그래픽 버퍼의 수를 늘리는 경우, 메모리 부족 및 지연(input lag)을 증가시킬 수 있다. 안드로이드 OS를 사용하는 전자장치들은 고해상도 데이터 및 다양한 어플리케이션들을 동시에 실행하는 환경으로 변화될 수 있으며, 이로인해 메모리 중 그래픽버퍼가 차지하는 용량이 점차 증가될 수 있다. 예를 들면, 갤럭시 Tab S (WQXGA 2560x1600) 에서 웹을 실행할 경우, 전자장치는 총 270MB 의 메모리를 그래픽버퍼에 할당하게 될 수 있다(3GB RAM 의 약 9% 점유). 이런 경우, 전자장치는 메모리 부족이 발생하여 성능 악화 등을 유발할 수 있다. 본 발명의 다양한 실시예에 따른 전자장치는 그래픽 성능을 저하시키지 않는 범위 안에서 동적으로 각 어플리케이션들이 최소한의 그래픽버퍼 수를 사용할 수 있도록 설정할 수 있다. Therefore, when the electronic device increases the number of graphics buffers, memory shortage and input lag may increase. Electronic devices using the Android OS may be transformed into an environment in which high-resolution data and various applications are executed simultaneously, and as a result, the space occupied by the graphics buffer in memory may gradually increase. For example, when running the web on a Galaxy Tab S (WQXGA 2560x1600), the electronic device may allocate a total of 270MB of memory to the graphics buffer (occupying about 9% of 3GB RAM). In this case, the electronic device may run out of memory, causing performance deterioration. Electronic devices according to various embodiments of the present invention can be dynamically set so that each application can use the minimum number of graphics buffers within a range that does not degrade graphics performance.

전자장치는 서피스(surface 또는 layer)가 생성되면, 그래픽 버퍼를 동적으로 할당할 수 있다. 어플리케이션은 그래픽 버퍼의 사용 요청(버퍼 요청, dequeueBuffer) 및 출력 요청(queueBuffer)을 할 수 있다. 어플리케이션에서 그래픽 버퍼의 요청이 발생되면, 윈도우 합성기는 합성 타입, 버퍼 사용시간의 변동성 등에 기반하여 그래픽 버퍼를 동적으로 설정할 수 있다. The electronic device can dynamically allocate a graphics buffer when a surface (surface or layer) is created. An application can request the use of a graphics buffer (buffer request, dequeueBuffer) and output request (queueBuffer). When a request for a graphics buffer occurs in an application, the window compositor can dynamically set the graphics buffer based on the composition type and the volatility of buffer usage time.

도 12는 본 발명의 다양한 실시예에 따른 안드로이드 OS를 사용하는 전자장치의 구성을 도시하는 도면이다. 도 12에서 서피스 플링거는 도 4의 합성 모듈(416)의 예가 될 수 있다. 이하의 설명에서 합성 모듈은 서피스플링거인 예로 설명될 것이다.FIG. 12 is a diagram illustrating the configuration of an electronic device using the Android OS according to various embodiments of the present invention. The surface flinger in FIG. 12 may be an example of the compositing module 416 of FIG. 4. In the following description, the synthesis module will be explained as an example of a surface flinger.

도 12를 참조하면, 전자장치는 어플리케이션(1210), 윈도우 합성기(1220) 및 디스플레이 컨트롤러(1230)을 포함할 수 있다. 윈도우 합성기(1220)은 서비스플링거(1223), 버퍼 관리 모듈(1225) 및 그래픽 버퍼 관리 모듈(1227)을 포함할 수 있다. 본 발명의 다양한 실시 예에 따르면, 어플리케이션(1210), 윈도우 합성기(1220), 디스플레이 컨트롤러(1230)은 프로세서(예: 도 1의 프로세서(120))에 의해 동작될 수 있다.Referring to FIG. 12 , the electronic device may include an application 1210, a window compositor 1220, and a display controller 1230. The window compositor 1220 may include a service flinger 1223, a buffer management module 1225, and a graphics buffer management module 1227. According to various embodiments of the present invention, the application 1210, the window compositor 1220, and the display controller 1230 may be operated by a processor (eg, the processor 120 of FIG. 1).

어플리케이션(1210)은 복수의 어플리케이션들이 될 수 있으며, 각 어플리케이션은 적어도 하나의 레이어(layer, surface)를 생성할 수 있다. 어플리케이션(1210)은 생성된 레이어의 그래픽 버퍼에 픽셀 데이터를 기록(write, draw)할 수 있다.The application 1210 may be a plurality of applications, and each application may create at least one layer (layer, surface). The application 1210 can write (write, draw) pixel data to the graphics buffer of the created layer.

윈도우 합성기(1220)은 그래픽 버퍼를 소유하는 객체의 개수, 각 객체에서 그래픽버퍼를 소유하는 시간의 변동성 또는 합성 타입의 변경 등을 동적으로 모니터링하여 그래픽 버퍼의 수를 산정할 수 있다. 윈도우 합성기(1220)은 합성 타입에 기반하여 그래픽 버퍼에 기록된 데이터를 홀드하거나 또는 데이터를 리드하여 프레임 버퍼에 합성 대기 상태로 기록할 수 있다. The window compositor 1220 can calculate the number of graphic buffers by dynamically monitoring the number of objects owning graphic buffers, the volatility of the time each object owns a graphic buffer, or a change in composition type. The window compositor 1220 may hold data recorded in the graphic buffer based on the composition type, or read the data and record it in a composition standby state in the frame buffer.

윈도우 합성기(1220)의 동작을 살펴보면, 버퍼 관리 모듈(1225)는 그래픽 버퍼를 생성하고 관리할 수 있다. 어플리케이션(또는 레이어)는 버퍼 관리 모듈(1225)에서 그래픽 버퍼를 요청(dequeueBuffer)할 수 있으며, 버퍼 관리 모듈(1225)는 해당하는 어플리케이션(또는 레이어)에 그래픽 버퍼를 할당할 수 있다. 어플리케이션(또는 레이어)는 버퍼 관리 모듈(1225)에 드로잉이 완료된 그래픽 버퍼에 대하여 출력 요청(queueBuffer)을 할 수 있으며, 버퍼 관리 모듈(1225)는 출력 요청된 그래픽 버퍼를 합성 대기 상태로 관리할 수 있다. 예를들면, 버퍼 관리 모듈(1225)은 도 4의 버퍼 관리 모듈(412)이 될 수 있다. Looking at the operation of the window compositor 1220, the buffer management module 1225 can create and manage a graphics buffer. An application (or layer) can request a graphic buffer (dequeueBuffer) from the buffer management module 1225, and the buffer management module 1225 can allocate a graphic buffer to the corresponding application (or layer). The application (or layer) can make an output request (queueBuffer) to the buffer management module 1225 for a graphic buffer for which drawing has been completed, and the buffer management module 1225 can manage the graphic buffer requested for output in a synthesis standby state. there is. For example, the buffer management module 1225 may be the buffer management module 412 of FIG. 4.

서피스플링거(1223)은 실행 중인 모든 어플리케이션(1210)의 합성 타입(composition type)을 포함하는 모든 그래픽 정보를 관리할 수 있다. 서피스플링거(1223)은 도 4의 합성 모듈(416)을 포함하는 구성을 가질 수 있다. 서피스플링거(1223)은 그래픽 버퍼의 획득의 필요하면 버퍼 관리 모듈(1225)에 요청하고, 사용이 종료된 그래픽 버퍼를 다시 버퍼 관리 모듈(1225)에 전달할 수 있다. Surface Flinger 1223 can manage all graphic information including composition types of all running applications 1210. The surface linger 1223 may have a configuration including the synthesis module 416 of FIG. 4 . If the surface flinger 1223 needs to acquire a graphics buffer, it can request the buffer management module 1225 and transfer the used graphics buffer back to the buffer management module 1225.

그래픽 버퍼 관리 모듈(1227)은 서피스플링거(1223)에서 전달되는 합성 타입 및/또는 버퍼 관리 모듈(1225)의 dequeueBuffer 및 queueBuffer에 기반하여 그래픽 버퍼의 수를 산정할 수 있다.The graphics buffer management module 1227 may calculate the number of graphics buffers based on the composite type transmitted from the surface linger 1223 and/or the dequeueBuffer and queueBuffer of the buffer management module 1225.

한 실시예에서, 그래픽 버퍼 관리 모듈(1227)은 서피스플링거(1223)에서 전달되는 합성 타입 정보에 기반하여 그래픽 버퍼의 수를 산정할 수 있다. 서피스플링거(1223)에서 전달되는 합성 타입 정보는 제1 합성 타입 또는 제2 합성 타입이 될 수 있다. 예를들면, 제1합성 타입은 GLES 타입이 될 수 있으며, 제2 합성 타입은 HWC 타입이 될 수 있다. GRES 타입은 도 9에 도시된 바와 같이 객체의 수가 2개(application, surfaceflinger) 이하가 될 수 있다. HWC 타입은 도 10에 도시된 바와 같이 객체의 수가 3개(application, surfaceflinger, display controller) 이상일 수 있다. 그래픽 버퍼 관리 모듈(1227)은 하기 <표 1>과 같이, 합성 타입이 HWC 타입이면 트리플 버퍼를 적용하고, GLES 타입이면 더블 버퍼를 적용하도록 관리할 수 있다. In one embodiment, the graphics buffer management module 1227 may calculate the number of graphics buffers based on composition type information transmitted from the surface linger 1223. The composition type information transmitted from the surface flinger 1223 may be the first composition type or the second composition type. For example, the first synthesis type can be a GLES type, and the second synthesis type can be a HWC type. As shown in FIG. 9, the GRES type can have two or fewer objects (application, surfaceflinger). As shown in FIG. 10, the HWC type may have three or more objects (application, surfaceflinger, display controller). As shown in Table 1 below, the graphic buffer management module 1227 can manage to apply a triple buffer if the composition type is the HWC type, and to apply a double buffer if the composition type is the GLES type.

Composition typeComposition type 객체 수number of objects Graphic buffer policyGraphic buffer policy GLES typeGLES type 22 Double buffer 적용 대상Double buffer applies to HWC typeHWC type 33 Triple buffer 적용 대상Triple buffer application target

한 실시예에서, 그래픽 버퍼 관리 모듈(1227)은 버퍼 관리 모듈(1225)에서 전달되는 dequeueBuffer 및 queueBuffer에 기반하여 각 객체에서 그래픽버퍼를 소유하는 시간의 변동성을 측정할 수 있다. 그래픽 버퍼 관리 모듈(1227)은 더블 버퍼를 할당하여 그래픽 데이터를 처리(GLES 타입으로 그래픽 데이터를 합성)하는 경우, 상기 dequeueBuffer 및 queueBuffer의 시간을 이용하여 하기 <수학식 1>과 같이 객체의 그래픽 버퍼의 소유 시간을 측정할 수 있다. 그래픽 버퍼 관리 모듈(1227)은 객체의 그래픽 버퍼 소유 시간이 일정하면 더블 버퍼를 적용하고, 그래픽 버퍼 소유 시간이 일정하지 않으면 트리플 버퍼를 적용하도록 관리할 수 있다. In one embodiment, the graphics buffer management module 1227 may measure the volatility of the time each object owns the graphics buffer based on the dequeueBuffer and queueBuffer passed from the buffer management module 1225. When the graphic buffer management module 1227 allocates a double buffer to process graphic data (combining graphic data in the GLES type), the graphic buffer of the object is stored using the times of the dequeueBuffer and queueBuffer as shown in Equation 1 below. Possession time can be measured. The graphic buffer management module 1227 can manage to apply a double buffer when the graphic buffer ownership time of an object is constant, and to apply a triple buffer when the graphic buffer ownership time of an object is not constant.

본 발명의 다양한 실시예에 따른 전자장치는 소유하는 객체 수에 따라 그래픽 버퍼의 수를 조절할 수 있다. 안드로이드 OS 에서, 전자장치는 합성 타입에 기반하여 상기 <표 1>에 나타낸 바와 같이 해당하는 그래픽버퍼를 소유하는 객체의 개수를 알 수 있다. 윈도우 합성기(1220)의 서피스플링거(1223)은 실행 중인 모든 어플리케이션(1210) 들의 합성 타입을 포함하는 모든 그래픽 정보를 관리할 수 있다. 그리고 그래픽 버퍼 관리 모듈(1227)은 서피스플링거(1223)로부터 합성 타입 정보를 획득할 수 있다. 그래픽 버퍼 관리 모듈(1227)은 객체의 수에 기반하여 그래픽 버퍼의 수를 관리할 수 있다. 예를들면, HWC 타입인 경우 그래픽버퍼를 소유하는 객체가 3개이므로, 그래픽 버퍼 관리 모듈(1227)은 그래픽 버퍼를 트리플 버퍼로 적용할 수 있으며, GLES 타입인 경우 그래픽 버퍼를 소유하는 객체가 2개이므로, 그래픽 버퍼 관리 모듈은 그래픽 버퍼를 더블 버퍼의 적용 대상 후보로 관리할 수 있다. Electronic devices according to various embodiments of the present invention can adjust the number of graphics buffers according to the number of objects owned. In the Android OS, the electronic device can know the number of objects that own the corresponding graphic buffer as shown in <Table 1> above based on the composition type. The surface flinger 1223 of the window compositor 1220 can manage all graphic information including the composition types of all running applications 1210. And the graphics buffer management module 1227 can obtain composition type information from the surface flinger 1223. The graphics buffer management module 1227 can manage the number of graphics buffers based on the number of objects. For example, in the case of the HWC type, there are 3 objects that own the graphic buffer, so the graphic buffer management module 1227 can apply the graphic buffer as a triple buffer, and in the case of the GLES type, there are 2 objects that own the graphic buffer. Therefore, the graphic buffer management module can manage the graphic buffer as a candidate for application of the double buffer.

그래픽 버퍼 관리 모듈(1227)은 GLES 타입이면, 각 객체의 그래픽버퍼 소유시간을 모니터링하여 그리팩 버퍼의 수를 더블 버퍼 또는 트리플 버퍼로 관리할 수 있다. 전자장치는 버퍼 관리 모듈(1225)를 이용하여 각 어플리케이션(1210) 및 서피스플링거(1223)의 그래픽 버퍼를 관리할 수 있다. 각 어플리케이션(1210) 또는 서피스플링거(1223)은 그래픽버퍼 획득이 필요한 경우 버퍼 관리 모듈(1225)에 요청(dequeueBuffer)하고, 사용이 끝난 그래픽버퍼는 다시 버퍼 관리 모듈(1225)에 전달할 수 있다(queueBuffer). 그래픽 버퍼 관리 모듈(1227)은 버퍼 관리 모듈(1225)이 각 객체 (어플리케이션(1210), 서피스플링거(1225)의 요청(dequeueBuffer, queueBuffer)에 기반하여 각 개체가 그래픽버퍼를 소유한 시간을 상기 <수학식 1>과 같이 측정할 수 있다.If the graphic buffer management module 1227 is of the GLES type, it can monitor the graphic buffer possession time of each object and manage the number of graphics buffers as double buffers or triple buffers. The electronic device can manage the graphic buffer of each application 1210 and the surface linger 1223 using the buffer management module 1225. When each application 1210 or surface linger 1223 needs to obtain a graphic buffer, it requests (dequeueBuffer) the buffer management module 1225, and transfers the used graphic buffer back to the buffer management module 1225 ( queueBuffer). The graphic buffer management module 1227 remembers the time each object owns the graphic buffer based on the request (dequeueBuffer, queueBuffer) of each object (application 1210, surface flinger 1225). It can be measured as shown in <Equation 1>.

전자장치는 그래픽버퍼 소유 객체가 2개인 GLES 타입인 경우, 기본적으로는 더블 버퍼를 적용할 수 있다. 그러나, 소유 객체가 2개인 경우라도, 그래픽버퍼를 소유하는 시간이 일정하지 않은 경우, 프레임 드롭(frame drop)에 따른 그래픽 성능 저하가 발생될 수 있다. 본 발명의 다양한 실시예에 따른 전자장치는 그래픽버퍼 소유 객체가 2개인 GLES 타입인 경우, 객체의 그래픽 버퍼 소유시간이 일정하면 그래픽 버퍼를 더블 버퍼로 적용할 수 있으며, 객체의 그래픽 버퍼 소유시간이 일정하지 않으면 그래픽 버퍼를 트리플 버퍼로 적용할 수 있다. If the electronic device is a GLES type with two graphic buffer-owning objects, a double buffer can be applied by default. However, even when there are two owning objects, if the time to own the graphics buffer is not constant, graphics performance may deteriorate due to frame drop. When the electronic device according to various embodiments of the present invention is a GLES type with two graphic buffer-owning objects, the graphic buffer can be applied as a double buffer if the graphic buffer ownership time of the object is constant, and the graphic buffer ownership time of the object is constant. If it is not constant, the graphics buffer can be applied as a triple buffer.

도 13은 본 발명의 다양한 실시예에 따른 전자장치에서 어플리케이션의 그래픽 버퍼의 소유시간이 매 프레임에서 일정한 예의 동작을 도시하는 도면이다. 도 13에서 서피스 플링거는 도 4의 합성 모듈(416)의 예가 될 수 있다. 이하의 설명에서 합성 모듈은 서피스플링거인 예로 설명될 것이다.FIG. 13 is a diagram illustrating an example operation in which the possession time of a graphic buffer of an application is constant in each frame in an electronic device according to various embodiments of the present invention. The surface flinger in Figure 13 may be an example of the compositing module 416 of Figure 4. In the following description, the synthesis module will be explained as an example of a surface flinger.

도 13에서 1310-1330은 그래픽 버퍼를 더블 버퍼로 적용하는 경우의 어플리케이션, 서피스플링거 및 디스플레이의 동작 예를 도시하고 있으며, 1360-1380은 그래픽 버퍼를 트리플 버퍼로 적용하는 경우의 어플리케이션, 서피스플링거 및 디스플레이의 동작 예를 도시하고 있다. In Figure 13, numbers 1310-1330 show examples of the operation of an application, Surface Flinger, and a display when the graphic buffer is applied as a double buffer, and 1360-1380 show an example of the operation of the Surface Flinger and a display when the graphic buffer is applied as a triple buffer. An example of operation of the ringer and display is shown.

도 13을 참조하면, 그래픽 버퍼를 더블 버퍼로 적용할 때, 어플리케이션은 도 13의 1310과 같이 그래픽 버퍼에 그래픽 데이터를 기록할 수 있으며, 서피스플링거는 1320과 같이 그래픽 버퍼에 기록된 그래픽 데이터를 리드할 수 있다. 1310과 같이 그래픽 버퍼에 그래픽 데이터가 기록되는 경우, 도 13의 1330과 같이 디스플레이에 표시되는 그래픽 데이터는 도 13의 1343 및 1345와 같은 프레임 드롭이 발생될 수 있다. Referring to FIG. 13, when applying the graphic buffer as a double buffer, the application can record graphic data in the graphic buffer as shown at 1310 in FIG. 13, and the Surface Flinger records the graphic data recorded in the graphic buffer as 1320. You can lead. When graphic data is recorded in a graphics buffer as shown in 1310, frame drops such as 1343 and 1345 in FIG. 13 may occur in the graphic data displayed on the display as 1330 in FIG. 13.

그래픽 버퍼를 트리플 버퍼로 적용할 때, 어플리케이션은 도 13의 1350과 같이 그래픽 버퍼에 데이터를 기록할 수 있으며, 서피스플링거는 1370과 같이 그래픽 버퍼에 기록된 데이터를 리드할 수 있다. 1360과 같이 그래픽 버퍼에 데이터가 기록되는 경우, 도 13의 1380과 같이 디스플레이에 표시되는 그래픽 데이터는 1393 및 1395와 같은 프레임 드롭이 발생될 수 있다.When applying the graphic buffer as a triple buffer, the application can write data to the graphic buffer as shown at 1350 in FIG. 13, and Surface Flinger can read data written to the graphic buffer as shown at 1370. When data is recorded in a graphics buffer, such as 1360, frame drops such as 1393 and 1395 may occur in graphic data displayed on the display, such as 1380 in FIG. 13.

도 13과 같이 어플리케이션 및 서피스플링거의 그래픽 버퍼 소유 시간이 일정한 경우, 그래픽 버퍼를 더블 버퍼로 적용하거나 트리플 버퍼로 적용하여도 동일한 프레임 드롭이 발생됨을 알 수 있다. As shown in Figure 13, when the graphic buffer possession time of the application and the surface flinger is constant, it can be seen that the same frame drop occurs even if the graphic buffer is applied as a double buffer or a triple buffer.

도 14는 본 발명의 다양한 실시예에 따른 전자장치에서 서피스플링거의 그래픽 버퍼의 소유시간이 매 프레임에서 일정한 예의 다른 동작을 도시하는 도면이다. 도 14에서 1410-1430은 그래픽 버퍼를 더블 버퍼로 적용하는 경우의 어플리케이션, 서피스플링거 및 디스플레이의 동작 예를 도시하고 있으며, 1460-1480은 그래픽 버퍼를 트리플 버퍼로 적용하는 경우의 어플리케이션, 서피스플링거 및 디스플레이의 동작 예를 도시하고 있다. 도 14에서 서피스 플링거는 도 4의 합성 모듈(416)의 예가 될 수 있다. 이하의 설명에서 합성 모듈은 서피스플링거인 예로 설명될 것이다.FIG. 14 is a diagram illustrating another operation in an electronic device according to various embodiments of the present invention, where the possession time of the graphic buffer of the Surface Flinger is constant in each frame. In Figure 14, numbers 1410-1430 show examples of the operation of an application, Surface Flinger, and display when the graphic buffer is applied as a double buffer, and 1460-1480 show examples of the operation of the application, Surface Plus, when the graphic buffer is applied as a triple buffer. An example of operation of the ringer and display is shown. The surface flinger in Figure 14 may be an example of the compositing module 416 of Figure 4. In the following description, the synthesis module will be explained as an example of a surface flinger.

도 14를 참조하면, 그래픽 버퍼를 더블 버퍼로 적용할 때, 어플리케이션은 도 14의 1410과 같이 그래픽 버퍼에 그래픽 데이터를 기록할 수 있으며, 서피스플링거는 1420과 같이 그래픽 버퍼에 기록된 그래픽 데이터를 리드할 수 있다. 도 14의 1410에서 어플리케이션은 매 프레임 데이터를 그래픽 버퍼에 기록할 때 1443, 1445, 1447과 같이 대기하면서 그래픽 데이터를 기록하는 예를 도시하고 있다. 도 14의 1410과 같이 그래픽 버퍼에 데이터가 기록되는 경우, 도 14의 1430과 같이 디스플레이에 표시되는 그래픽 데이터는 도 14의 1453, 1455, 1457과 같은 프레임 드롭이 발생될 수 있다. Referring to FIG. 14, when applying the graphic buffer as a double buffer, the application can record graphic data in the graphic buffer as shown at 1410 in FIG. 14, and the Surface Flinger records the graphic data recorded in the graphic buffer as 1420. You can lead. 1410 in FIG. 14 shows an example of the application recording graphics data while waiting at 1443, 1445, and 1447 when recording data for each frame to the graphics buffer. When data is recorded in the graphics buffer as shown at 1410 in FIG. 14, frame drops such as 1453, 1455, and 1457 in FIG. 14 may occur in the graphic data displayed on the display as at 1430 in FIG. 14.

그래픽 버퍼를 트리플 버퍼로 적용할 때, 어플리케이션은 도 14의 1450과 같이 그래픽 버퍼에 그래픽 데이터를 기록할 수 있으며, 서피스플링거는 1470과 같이 그래픽 버퍼에 기록된 그래픽 데이터를 리드할 수 있다. 도 14의 1460에서, 어플리케이션은 매 프레임 데이터를 그래픽 버퍼에 기록할 때 1494 및 1496과 같은 대기 시간을 가지며 데이터를 기록하는 예를 도시하고 있다. 도 14의 1460과 같이 그래픽 버퍼에 데이터가 기록되는 경우, 도 14의 1480과 같이 디스플레이에 표시되는 그래픽 데이터는 1493, 1495, 1497과 같은 프레임 드롭이 발생될 수 있다.When applying the graphic buffer as a triple buffer, the application can write graphic data to the graphic buffer as shown at 1450 in FIG. 14, and Surface Flinger can read the graphic data recorded in the graphic buffer as shown at 1470. At 1460 in FIG. 14, an example is shown where the application records data with waiting times equal to 1494 and 1496 when recording data for each frame to the graphics buffer. When data is recorded in the graphics buffer as shown at 1460 in FIG. 14, frame drops such as 1493, 1495, and 1497 may occur in the graphic data displayed on the display as shown at 1480 in FIG. 14.

도 14와 같이, 어플리케이션 및 서피스플링거가 일정한 버퍼 소유시간을 가지며 그래픽 버퍼를 트리플 버퍼로 적용하면, 어플리케이션은 도 14의 1460과 같이 다음 그래픽 버퍼를 요청하여 대기하는 시간에서 새로운 버퍼(예를들면, GB3)을 할당할 수 있다. 그러나 도 14의 1460과 같이 어플리케이션이 그래픽 버퍼에 데이터를 기록하여도, 디스플레이에 표시되는 그래픽 데이터는 도 14의 1480과 같이 더블 버퍼를 적용할 때와 동일한 프레임 드롭을 가질 수 있다. As shown in Figure 14, if the application and Surface Flinger have a certain buffer possession time and apply the graphic buffer as a triple buffer, the application requests the next graphic buffer as 1460 in Figure 14 and creates a new buffer (e.g. , GB3) can be allocated. However, even if the application records data in the graphics buffer as shown in 1460 of FIG. 14, the graphic data displayed on the display may have the same frame drop as when applying a double buffer as shown in 1480 of FIG. 14.

도 13 및 도 14는 합성 타입이 GLES 타입일 때, 어플리케이션 및 서피스플링거의 그래픽버퍼 소유 시간이 매 프레임에서 일정하게 유지되는 경우의 동작을 도시하는 도면이 될 수 있다. 그래픽 버퍼를 억세스할 수 있는 객체의 그래픽 버퍼의 소유 시간이 일정한 경우, 그래픽 버퍼를 더블 버퍼에서 트리플 버퍼로 변경하더라도 프레임 드롭을 개선할 수 없다. 그러므로 합성 타입이 GLES 타입이고 그래픽 버퍼의 소유 시간이 일정하면, 그래픽 버퍼를 더블 버퍼로 구성하는 방법이 메모리의 낭비를 방지하고 효율적으로 사용하는 방법이 될 수 있다. Figures 13 and 14 may be diagrams illustrating the operation when the composition type is the GLES type and the graphic buffer possession time of the application and the surface flinger is kept constant in each frame. If the possession time of the graphic buffer of an object that can access the graphic buffer is constant, frame drops cannot be improved even if the graphic buffer is changed from a double buffer to a triple buffer. Therefore, if the composition type is the GLES type and the possession time of the graphics buffer is constant, configuring the graphics buffer as a double buffer can be a way to prevent memory waste and use it efficiently.

도 15는 본 발명의 다양한 실시예에 따른 전자장치에서 서피스플링거의 그래픽 버퍼의 소유시간이 일정하지 않은 예의 다른 동작을 도시하는 도면이다. 도 15에서 1510-1530은 그래픽 버퍼를 더블 버퍼로 적용하는 경우의 어플리케이션, 서피스플링거 및 디스플레이의 동작 예를 도시하고 있으며, 1560-1580은 그래픽 버퍼를 트리플 버퍼로 적용하는 경우의 어플리케이션, 서피스플링거 및 디스플레이의 동작 예를 도시하고 있다. FIG. 15 is a diagram illustrating another operation in an example in which the possession time of the graphic buffer of the Surface Flinger is not constant in an electronic device according to various embodiments of the present invention. In Figure 15, 1510-1530 show an example of the operation of the Surface Flinger and display when the graphic buffer is applied as a double buffer, and 1560-1580 show an application when the graphic buffer is applied as a triple buffer, Surface Play. An example of operation of the ringer and display is shown.

도 15를 참조하면, 도 15의 1510에 도시된 바와 같이, 어플리케이션이 데이터를 기록하기 위해 그래픽 버퍼를 소유하는 시간이 다를 수 있다. 예를들면, 도 15의 1510에서 어플리케이션은 제1 버퍼의 소유 시간(예를들면, 그래픽 버퍼 GB1에 기록하는 시간) 및 제2 버퍼의 소유 시간(예를들면, 그래픽 버퍼 GB2에 기록하는 시간)이 다를 수 있다. 어플리케이션이 1510과 같이 그래픽 버퍼에 데이타를 기록하면, 서피스플링거는 1520과 같이 그래픽 버퍼에 기록된 데이터를 리드할 수 있으며, 도 15의 1530과 같이 디스플레이에 표시되는 그래픽 데이터는 도 15의 1543 및 1545와 같은 프레임 드롭이 발생될 수 있다. Referring to FIG. 15, as shown at 1510 in FIG. 15, the time an application holds a graphics buffer for recording data may vary. For example, at 1510 of FIG. 15, the application owns the first buffer's possession time (e.g., writing time to graphics buffer GB1) and the second buffer's possession time (e.g., writing time to graphics buffer GB2). This may be different. If the application records data in the graphic buffer as in 1510, Surface Flinger can read the data written in the graphic buffer as in 1520, and the graphic data displayed on the display as 1530 in FIG. 15 is 1543 and 1543 in FIG. 15. Frame drops such as 1545 may occur.

합성 타입이 GLES 타입이고 트리플 버퍼를 적용하면, 어플리케이션은 도 15의 1560과 같이 그래픽 버퍼에 데이터를 기록할 수 있다. 어플리케이션은 도 15의 1560과 같이 트리플 버퍼로 구성되는 GB1 버퍼 - GB3 버퍼에 데이터를 기록할 수 있다. 이때 어플리케이션이 데이터를 기록하기 위해 GB1 버퍼 - GB3 버퍼를 소유하는 시간은 각각 서로 다를 수 있다. 그러나 서피스플링거 및 디스플레이는 트리플 버퍼인 그래픽 버퍼에 기록된 데이터를 각각 도 15의 1570 및 1580과 같이 처리할 수 있다. 그러면 도 15의 1545와 같이 발생되는 프레임 드롭을 개선할 수 있다. If the composition type is the GLES type and a triple buffer is applied, the application can record data in the graphics buffer as shown at 1560 in FIG. 15. The application can record data in the GB1 buffer - GB3 buffer, which is composed of triple buffers, as shown at 1560 in FIG. 15. At this time, the time that the application owns the GB1 buffer - GB3 buffer to record data may be different. However, the Surface Flinger and the display can process data recorded in the graphics buffer, which is a triple buffer, as shown at 1570 and 1580 in FIG. 15, respectively. Then, frame drops that occur as shown at 1545 in FIG. 15 can be improved.

도 15에 도시된 바와 같이, 어플리케이션 및/또는 서피스플링거가 그래픽버퍼를 소유하는 시간이 일정하지 않은 경우, 전자장치는 그래픽버퍼를 더 추가(예를들면, 그래픽 버퍼를 더블 버퍼에서 트리플 버퍼로 구성)함으로써 프레임 드롭을 줄일 수 있다. As shown in FIG. 15, if the time that the application and/or the surface lingerer owns the graphics buffer is not constant, the electronic device adds more graphics buffers (e.g., changes the graphics buffer from a double buffer to a triple buffer). configuration) to reduce frame drops.

도 16은 본 발명의 다양한 실시예에 따른 전자장치에서 합성 타입의 변경에 따른 동작 예를 도시하는 도면이다. 도 16은 GLES 타입에서 HWC 타입으로 합성 타입이 변경되는 예를 도시하고 있다.FIG. 16 is a diagram illustrating an example of operation according to a change in composition type in an electronic device according to various embodiments of the present invention. Figure 16 shows an example of changing the composition type from the GLES type to the HWC type.

도 16을 참조하면, GLES 합성 타입에 버퍼 소유시간이 일정하면, 어플리케이션 및 서피스플링거는 각각 도 16의 1610 및 1620과 같이 더블 버퍼링 방법으로 그래픽 버퍼에 데이터를 기록 및 리드할 수 있다. 이때 도 16의 1640과 같이 합성 타입이 GLES 타입에 HWC 타입으로 변경되면, 서피스플링거는 합성 타입의 변경을 인식하고 그래픽 버퍼를 더블 버퍼에서 트리플 버퍼로 변경할 수 있다. 그러면 어플리케이션 및 서피스플링거는 도 16의 1640 시점 이후에 각각 도 16의 1610 및 1620과 같이 트리플 버퍼가 적용되는 그래픽 버퍼에 데이터를 기록 및 리드할 수 있다. 그리고 디스플레이는 도 16의 1630과 같이 합성 타입의 변경에 따른 데이터를 표시할 수 있다. Referring to FIG. 16, if the buffer ownership time is constant in the GLES composition type, the application and Surface Flinger can write and read data to the graphics buffer using the double buffering method, as shown at 1610 and 1620 in FIG. 16, respectively. At this time, if the composition type is changed from GLES type to HWC type as shown at 1640 in FIG. 16, Surface Flinger can recognize the change in composition type and change the graphics buffer from double buffer to triple buffer. Then, the application and the surface slinger can write and read data to the graphics buffer to which the triple buffer is applied, as shown at 1610 and 1620 in FIG. 16, respectively, after time point 1640 in FIG. 16. And the display can display data according to the change in composition type, as shown at 1630 in FIG. 16.

그래픽 데이터를 처리하는 중에 합성 타입이 변경(GLES type 에서 HWC type 또는 HWC type에서 GLES type으로 변경)되면, 버퍼 소유 객체 수가 변경될 수 있다. 도 16에서와 같이 처음에 GLES 타입으로 동작하면, 전자장치는 그래픽 버퍼를 더블 버퍼링 방법으로 동작시켜 그래픽 데이터를 처리할 수 있다. 이후 GLES 타입에서 HWC 타입으로 변경되면, 전자장치는 그래픽 버퍼를 트리플 버퍼링 방법으로 변경시킬 수 있다. 도 16에 도시된 바와 같이 1640 시점에서 합성타입이 변경되면, 새로운 그래픽 버퍼 (GB2)가 필요한 시점은 HWC 타입으로 변경된 이후에 어플리케이션이 다음 그래픽 데이터를 기록(drawing)을 시도하는 시점이 될 수 있다. 그러므로 전자장치(예를들면, 그래픽 버퍼 관리 모듈)는 GLES 타입에서 HWC 타입으로 변경된 시점(도 16의 1610 시점)에서 새로운 그래픽버퍼 (GB2)를 할당(그래픽 버퍼를 트리플 버퍼로 변경)하여 대기시킬 수 있다. If the composite type changes (from GLES type to HWC type or HWC type to GLES type) while processing graphics data, the number of buffer-owning objects may change. As shown in FIG. 16, when initially operating as the GLES type, the electronic device can process graphics data by operating the graphics buffer in a double buffering method. Afterwards, when the GLES type is changed to the HWC type, the electronic device can change the graphics buffer to the triple buffering method. As shown in FIG. 16, if the composite type is changed at time 1640, the time when a new graphics buffer (GB2) is needed may be when the application attempts to record (drawing) the next graphics data after changing to the HWC type. . Therefore, the electronic device (e.g., graphics buffer management module) allocates a new graphics buffer (GB2) (changes the graphics buffer to a triple buffer) at the time when the GLES type is changed to the HWC type (at 1610 in FIG. 16) and waits. You can.

합성 타입이 GLES 타입에서 HWC 타입으로 변경되면(예를들면, 도 16의 1640 시점 이후), 디스플레이 컨트롤러는 도 16의 1630에 도시된 바와 같이 그래픽 버퍼(GB1 - GB3)에 기록되는 그래픽 데이터를 리드하여 하드웨어 컴포지션으로 합성하여 표시할 수 있다. 이로인해 어플리케이션에서는 그래픽버퍼 획득을 위해 대기를 할 필요가 없어, 그래픽성능 저하를 방지할 수 있다.When the composition type changes from the GLES type to the HWC type (for example, after point 1640 in FIG. 16), the display controller reads the graphics data written to the graphics buffers (GB1 - GB3) as shown at 1630 in FIG. 16. It can be synthesized and displayed as a hardware composition. As a result, the application does not need to wait to acquire the graphics buffer, preventing a decrease in graphics performance.

한 실시예에서, 전자장치는 그래픽 데이터를 처리하는 중에 합성 타입이 GLES 타입에서 HWC 타입으로 변경되면 그래픽 버퍼를 트리플 버퍼링 방법으로 변경하여 성능 저하없이 그래픽 데이터를 처리할 수 있다. 한 실시예에 따르면, 전자장치는 그래픽 데이터를 처리하는 중에 합성 타입이 HWC 타입에서 GLES 타입으로 변경되면 그래픽 버퍼를 더블 버퍼링 방법으로 변경하여 메모리를 효율적으로 사용하면서 그래픽 데이터를 처리할 수 있다.In one embodiment, when the composition type changes from the GLES type to the HWC type while processing graphics data, the electronic device can process the graphics data without performance degradation by changing the graphics buffer to the triple buffering method. According to one embodiment, when the composition type changes from the HWC type to the GLES type while processing graphics data, the electronic device can process the graphics data while efficiently using memory by changing the graphics buffer to the double buffering method.

본 발명의 다양한 실시예에 따른 전자 장치는, 적어도 두개의 객체들에 의해 억세스되는 그래픽 버퍼; 디스플레이; 및 상기 그래픽 버퍼 및 디스플레이에 기능적으로 연결되는 프로세서를 포함할 수 있다. 상기 프로세서는 상기 그래픽 처리 조건을 분석하여 상기 그래픽 버퍼의 수를 설정하며, 상기 그래픽 버퍼에 기록되는 그래픽 데이터를 상기 디스플레이에 표시되도록 처리할 수 있다 An electronic device according to various embodiments of the present invention includes a graphics buffer accessed by at least two objects; display; and a processor functionally connected to the graphics buffer and display. The processor may analyze the graphics processing conditions, set the number of graphics buffers, and process graphics data written to the graphics buffer to be displayed on the display.

상기 프로세서는 상기 그래픽 버퍼를 소유하는 객체의 수가 3개 이상이면 상기 그래픽 버퍼를 트리플 버퍼로 설정할 수 있다. The processor may set the graphic buffer as a triple buffer if the number of objects owning the graphic buffer is three or more.

상기 프로세서는 상기 그래픽 버퍼를 소유하는 객체의 수가 2개 이하이면 상기 그래픽 버퍼를 더블 버퍼로 설정할 수 있다. The processor may set the graphic buffer as a double buffer if the number of objects owning the graphic buffer is two or less.

상기 프로세서는 상기 그래픽 버퍼를 소유하는 객체의 버퍼 소유 시간을 모니터링하며, 상기 버퍼 소유 시간이 일정하지 않으면 상기 그래픽 버퍼를 트리플 버퍼로 설정할 수 있다. The processor monitors the buffer ownership time of the object that owns the graphic buffer, and if the buffer ownership time is not constant, the graphic buffer can be set to a triple buffer.

상기 프로세서는 버퍼 관리 모듈의 출력 요청 시간에서 버퍼 요청 시간을 감산하여 상기 버퍼 소유 시간을 계산할 수 있다. The processor may calculate the buffer possession time by subtracting the buffer request time from the output request time of the buffer management module.

상기 프로세서는 상기 그래픽 버퍼를 소유하는 객체의 수가 3개 이상이면 상기 그래픽 버퍼를 트리플 버퍼로 설정하고, 상기 객체의 수가 2개 이하이면 상기 그래픽 버퍼를 소유하는 객체의 버퍼 소유 시간을 모니터링하며, 상기 버퍼 소유 시간이 일정하지 않으면 상기 그래픽 버퍼를 트리플 버퍼로 설정하고, 상기 버퍼 소유 시간이 일정하면 상기 그래픽 버퍼를 더블 버퍼로 설정할 수 있다. The processor sets the graphic buffer as a triple buffer if the number of objects owning the graphic buffer is 3 or more, and monitors the buffer possession time of the object owning the graphic buffer if the number of objects is 2 or less. If the buffer ownership time is not constant, the graphic buffer can be set as a triple buffer, and if the buffer ownership time is constant, the graphic buffer can be set as a double buffer.

상기 프로세서는 윈도우 합성기를 포함할 수 있다. 상기 윈도우 합성기는The processor may include a window compositor. The window compositor is

상기 객체의 버퍼 요청에 의해 상기 그래픽 버퍼를 할당하고, 출력 요청에 의해 상기 그래픽 버퍼의 할당을 해제하는 버퍼 관리 모듈; 실행 중인 어플리케이션들의 합성 타입을 포함하는 그래픽 정보를 관리하는 합성 모듈; 및a buffer management module that allocates the graphic buffer in response to a buffer request of the object and deallocates the graphic buffer in response to an output request; a composition module that manages graphic information including composition types of running applications; and

상기 합성 모듈의 합성 타입 및 버퍼 관리 모듈의 버퍼 요청 시간 및 출력 요청 시간에 기반하여 계산되는 상기 객체의 소유 시간에 의해 상기 그래픽 버퍼의 수를 조절하는 그래픽 버퍼 관리 모듈을 포함할 수 있다. It may include a graphic buffer management module that adjusts the number of graphic buffers by the possession time of the object calculated based on the composition type of the composition module and the buffer request time and output request time of the buffer management module.

상기 합성 타입은 그래픽 라이브러리를 사용하는 제1 합성 타입 및 디스플레이 컨트롤러 상 하드웨어 합성기를 사용하는 제2 합성 타입을 포함할 수 있다. The compositing type may include a first compositing type using a graphics library and a second compositing type using a hardware compositing type on a display controller.

상기 윈도우 합성기는 상기 합성타입이 상기 제2 합성 타입이면 상기 그래픽 버퍼를 트리플 버퍼로 설정할 수 있다.The window compositor may set the graphic buffer to a triple buffer if the composition type is the second composition type.

상기 윈도우 합성기는, 상기 합성 타입이 상기 제1 합성 타입이면 상기 객체의 버퍼 소유시간을 모니터링하며, 상기 버퍼 소유 시간이 일정하지 않으면 상기 그래픽 버퍼를 트리플 버퍼로 설정하고, 상기 버퍼 소유 시간이 일정하면 상기 그래픽 버퍼를 더블 버퍼로 설정할 수 있다. The window compositor monitors the buffer possession time of the object if the composition type is the first composition type, sets the graphic buffer to a triple buffer if the buffer possession time is not constant, and sets the graphic buffer to a triple buffer if the buffer possession time is constant. The graphic buffer can be set to a double buffer.

상기 윈도우 합성기는, 상기 합성타입이 상기 제2 합성 타입이면 상기 그래픽 버퍼를 트리플 버퍼로 설정하고, 상기 합성 타입이 상기 제1 합성 타입이면 상기 그래픽 버퍼를 소유하는 객체의 버퍼 소유 시간을 모니터링하며, 상기 버퍼 소유 시간이 일정하지 않으면 상기 그래픽 버퍼를 트리플 버퍼로 설정하고, 상기 버퍼 소유 시간이 일정하면 상기 그래픽 버퍼를 더블 버퍼로 설정할 수 있다.The window compositor sets the graphic buffer to a triple buffer if the composition type is the second composition type, and monitors the buffer possession time of the object owning the graphic buffer if the composition type is the first composition type, If the buffer ownership time is not constant, the graphic buffer can be set as a triple buffer, and if the buffer ownership time is constant, the graphic buffer can be set as a double buffer.

도 17은 본 발명의 실시예에 따른 전자장치에서 그래픽 데이터를 처리하는 동작을 도시하는 흐름도이다. FIG. 17 is a flowchart illustrating an operation of processing graphic data in an electronic device according to an embodiment of the present invention.

도 17을 참조하면, 전자장치(예를들면, 도 1의 프로세서(120), 도 2의 어플리케이션 프로세서(210))는 동작 1711에서 그래픽 버퍼를 소유하는 객체의 수를 모니터링할 수 있다. 전자장치는 그래픽 버퍼를 소유하는 객체 수에 따라 그래픽 버퍼의 개수를 조절할 수 있다. 예를들면, 안드로이드 OS를 사용하는 전자장치는 상기 <표 1>에 나타낸 바와 같이 합성 타입(composition type)에 기반하여 그래픽버퍼를 소유하는 객체의 개수를 알 수 있다. 전자장치의 윈도우 합성기는 실행 중인 모든 어플리케이션들의 합성 타입을 포함하는 모든 그래픽 정보를 관리할 수 있다. 예를들면, 윈도우 합성기의 그래픽 버퍼 버퍼 모듈은 서피스플링거로부터 합성 타입 정보를 획득할 수 있다.Referring to FIG. 17 , an electronic device (e.g., the processor 120 of FIG. 1 or the application processor 210 of FIG. 2) may monitor the number of objects owning a graphics buffer in operation 1711. The electronic device can adjust the number of graphics buffers depending on the number of objects that own the graphics buffer. For example, an electronic device using the Android OS can know the number of objects that own a graphic buffer based on the composition type, as shown in Table 1 above. The window compositor of the electronic device can manage all graphic information including the composition type of all running applications. For example, the graphics buffer buffer module of the Windows compositor can obtain composition type information from Surface Flinger.

전자장치는 그래픽 버퍼를 소유하는 객체들의 수가 3개 이상이면, 동작 1713에서 이를 인식하고, 동작 1721에서 그래픽 버퍼를 트리플 버퍼로 적용할 수 있다. 그래픽 버퍼를 트리플 버퍼로 적용하면, 전자장치는 도 10a - 도 14c와 같은 방법으로 그래픽 데이터를 그래픽 버퍼에 기록 및 리드하면서 그래픽 데이터를 합성 및 표시할 수 있다. If the number of objects owning a graphic buffer is three or more, the electronic device may recognize this in operation 1713 and apply the graphic buffer as a triple buffer in operation 1721. If the graphic buffer is applied as a triple buffer, the electronic device can synthesize and display graphic data while writing and reading graphic data to the graphic buffer in the same manner as shown in FIGS. 10A to 14C.

그래픽 버퍼를 소유하는 객체들의 수가 2개 이하이면, 전자장치는 동작 1713에서 이를 인식할 수 있다. 전자장치는 객체의 수가 2개 이하(예를들면, 합성 타입이 GLES type이면, 그래픽 버퍼는 더블 버퍼로 적용하기 위한 후보가 될 수 있다. 그래픽 버퍼를 소유하는 객체의 수가 2개 이하면, 전자장치는 동작 1715에서 각 객체(예를들면, 어플리케이션 및 윈도우 합성기(예를들면, 서피스플링거))의 그래픽 버퍼 소유 시간을 모니터링할 수 있다. 전자장치는 윈도우 합성기의 버퍼 관리 모듈을 이용하여 각 어플리케이션 및 서피스플링거의 그래픽 버퍼를 관리할 수 있다. 각 어플리케이션 또는 서피스플링거는 그래픽버퍼의 획득이 필요하면 버퍼 관리 모듈에 그래픽 버퍼의 사용을 요청(dequeueBuffer)할 수 있으며, 그래픽 버퍼의 사용이 끝나면 다시 버퍼 관리 모듈에 그래픽 버퍼의 사용 종료(queueBuffer)를 전달할 수 있다. 전자장치(예를들면, 윈도우 합성기의 그래픽 버퍼 관리 모듈)은 버퍼 관리 모듈이 각 객체(App, SurfaceFlinger)들에서 요청(dequeueBuffer, queueBuffer)에 기반하여 각 개체가 그래픽버퍼를 소유한 시간을 상기 <수학식 1>과 같이 계산할 수 있다. If the number of objects owning a graphics buffer is two or less, the electronic device may recognize this in operation 1713. The electronic device can be a candidate for application as a double buffer if the number of objects is 2 or less (for example, if the composition type is GLES type). If the number of objects owning the graphic buffer is 2 or less, the electronic device The device may monitor the graphics buffer possession time of each object (e.g., an application and a window compositor (e.g., a Surface Flinger)) in operation 1715. The electronic device may use the buffer management module of the window compositor to display each You can manage the graphic buffers of applications and Surface Flinger. If each application or Surface Flinger needs to acquire a graphic buffer, it can request the use of a graphic buffer (dequeueBuffer) to the buffer management module. When finished, the end of use of the graphic buffer (queueBuffer) can be passed back to the buffer management module. Electronic devices (for example, the graphic buffer management module of Windows Composer) have the buffer management module request ( Based on (dequeueBuffer, queueBuffer), the time that each object owns the graphic buffer can be calculated as in <Equation 1> above.

그래픽 버퍼의 소유 시간을 모니터링한 후, 전자장치는 동작 1717에서 객체가 보유하는 그래픽 버퍼의 소유시간을 분석할 수 있다. 전자장치는 그래픽버퍼의 소유 객체가 2개인 GLES 타입의 어플리케이션이면 기본적으로는 그래픽 버퍼를 더블 버퍼로 적용할 수 있다. 그러나, 소유 객체가 2개인 경우에도 객체들이 그래픽버퍼를 소유하는 시간이 일정하지 않은 경우, 도 15의 1510-1530에 도시된 바와 같이 프레임 드롭이 발생되어 그래픽 성능 저하를 야기할 수 있다. 본 발명의 다양한 실시예에 따른 전자장치는 GLES 타입에서 객체가 그래픽 버퍼를 소유하는 시간이 일정하지 않으면, 도 15의 1560-1580에 도시된 바와 같이 그래픽 버퍼를 트리플 버퍼로 적용하여 프레임 드롭을 방지할 수 있다. After monitoring the possession time of the graphics buffer, the electronic device may analyze the possession time of the graphics buffer held by the object in operation 1717. If the electronic device is a GLES type application with two graphic buffer objects, the graphic buffer can be basically applied as a double buffer. However, even when there are two owning objects, if the time for which the objects own the graphics buffer is not constant, a frame drop may occur as shown in 1510-1530 of FIG. 15, which may cause graphics performance to deteriorate. Electronic devices according to various embodiments of the present invention prevent frame drops by applying the graphics buffer as a triple buffer, as shown in numbers 1560-1580 of FIG. 15, when the time that an object owns the graphics buffer is not constant in the GLES type. can do.

객체가 보유하는 소유 시간이 일정하면, 전자장치는 동작 1717에서 그래픽 버퍼를 더블 버퍼링 방법으로 적용할 수 있다. 객체가 보유하는 소유 시간이 일정하지 않으면, 전자장치는 동작 1721에서 그래픽 버퍼를 트리플 버퍼링 방법으로 적용할 수 있다.If the possession time held by the object is constant, the electronic device may apply the double buffering method to the graphics buffer in operation 1717. If the possession time held by the object is not constant, the electronic device may apply the triple buffering method to the graphic buffer in operation 1721.

한 실시예에서, 전자장치는 그래픽 버퍼의 소유 시간이 일정 임계 시간 이하인가를 분석화여 그래픽 버퍼의 수를 설정할 수 있다. 버퍼 소유 시간이 설정된 임계 시간 보다 작으면, 전자장치는 그래픽 버퍼의 수를 크게 할당할 필요가 없을 수 있다. 전자장치는 동작 1715에서 그래픽 버퍼의 소유 시간을 모니터링할 수 있으며, 동작 1717에서 그래픽 버퍼의 소유 시간을 일정 임계 시간과 비교 분석할 수 있다. 전자장치는 그래픽 버퍼의 소유 시간이 임계 시간 이하이면 동작 1719에서 그래픽 버퍼의 수를 더블 버퍼로 설정하고, 임계 시간 이상이면 동작 1721에서 그래픽 버퍼의 수를 트리플 버퍼로 설정할 수 있다.In one embodiment, the electronic device may set the number of graphics buffers by analyzing whether the possession time of the graphics buffer is less than a certain threshold time. If the buffer possession time is less than the set threshold time, the electronic device may not need to allocate a large number of graphics buffers. The electronic device may monitor the possession time of the graphics buffer in operation 1715, and may compare and analyze the possession time of the graphics buffer with a certain threshold time in operation 1717. If the possession time of the graphics buffer is less than or equal to the threshold time, the electronic device may set the number of graphics buffers to a double buffer in operation 1719. If the possession time of the graphics buffer is more than the threshold time, the electronic device may set the number of graphics buffers to a triple buffer in operation 1721.

한 실시예에서, 전자장치는 그래픽 버퍼의 소유 시간에 기반하여 그래픽 버퍼의 수를 설정할 수 있다. 이런 경우, 도 17에서 동작 1711 및 동작 1713의 동작(예를들면 그래픽 버퍼를 소유하는 객체의 수에 기반하여 그래픽 버퍼의 수를 설정하는 동작)은 생략될 수 있다. 전자장치는 그래픽 버퍼의 수를 설정할 때, 동작 1715에서 객체(예를들면 레이어)의 그래픽 버퍼 소유 시간을 모니터링하고, 동작 1717에서 그래픽 버퍼의 소유 시간이 일정(또는 그래픽 버퍼 소유 시간이 일정 임계 시간 이하)한가 분석할 수 있다. 전자장치는 그래픽 버퍼 소유 시간이 일정(또는 일정 임계 시간 이하)하면 동작 1719에서 그래픽 버퍼의 수를 더블 버퍼로 설정하고, 버퍼 소유 시간이 일정하지 않으면(또는 일정 임계 시간 이상이면) 동작 1721에서 그래픽 버퍼의 수를 트리플 버퍼로 설정할 수 있다. In one embodiment, the electronic device may set the number of graphics buffers based on the possession time of the graphics buffers. In this case, operations 1711 and 1713 in FIG. 17 (e.g., setting the number of graphics buffers based on the number of objects owning the graphics buffers) may be omitted. When setting the number of graphics buffers, the electronic device monitors the graphics buffer possession time of an object (e.g., a layer) in operation 1715, and determines in operation 1717 that the graphics buffer ownership time is constant (or the graphics buffer ownership time is set to a certain threshold time). Below) can be analyzed at leisure. If the graphics buffer possession time is constant (or less than or equal to a certain threshold time), the electronic device sets the number of graphics buffers to a double buffer in operation 1719. If the buffer ownership time is not constant (or more than a certain threshold time), the electronic device sets the number of graphics buffers to double buffer in operation 1721. The number of buffers can be set to triple buffer.

예를들면, 전자장치는 어플리케이션의 화면 업데이트 빈도(그래픽 버퍼 업데이트 빈도)가 많으면, (예를들어, 이후 버퍼 할당 시에) 트리플 버퍼 할당할 수 있으며, 화면 업데이트 빈도가 적으면 더블 버퍼를 적용할 수 있다. For example, if the screen update frequency (graphic buffer update frequency) of the application is high, the electronic device can allocate a triple buffer (for example, when allocating the buffer later), and if the screen update frequency is low, a double buffer can be applied. You can.

한 실시예에서, 전자장치는 어플리케이션 별로 모니터링된 정보(주로 사용되는 버퍼 개수)를 메모리(예를들면 도 1의 메모리(130))에 저장할 수 있다. 이후 전자장치는 대응되는 어플리케이션이 구동될 때 메모리에 저장된 지정된 버퍼 개수로 그래픽 버퍼를 할당하여 사용될 수도 있다.In one embodiment, the electronic device may store monitored information (number of primarily used buffers) for each application in a memory (for example, memory 130 in FIG. 1). Thereafter, the electronic device may be used by allocating graphic buffers to the specified number of buffers stored in memory when the corresponding application is running.

도 18은 본 발명의 다양한 실시예에 따른 전자장치가 그래픽 데이터를 처리하는 동작을 도시하는 흐름도이다.FIG. 18 is a flowchart illustrating an operation of an electronic device processing graphic data according to various embodiments of the present invention.

도 18을 참조하면, 전자장치는 동작 1811에서 어플리케이션을 실행하여 그래픽 데이터를 처리할 수 있다. 한 실시예에서 전자장치는 어플리케이션이 실행될 때, 합성 타입을 분석하여 HWC 타입이면 그래픽 버퍼를 트리플 버퍼로 적용하고, GLES 타입이면 그래픽 버퍼를 더블 버퍼로 적용할 수 있다. 한 실시예에서 전자장치는 어플리케이션이 실행될 때, 그래픽 처리 동작의 안정을 위하여 그래픽 버퍼를 트리플 버퍼로 적용할 수 있다.Referring to FIG. 18, the electronic device may process graphic data by executing an application in operation 1811. In one embodiment, when an application is executed, the electronic device analyzes the composition type and applies the graphic buffer as a triple buffer if it is a HWC type, and applies the graphic buffer as a double buffer if it is a GLES type. In one embodiment, when an application is executed, the electronic device may apply a graphics buffer as a triple buffer to stabilize graphics processing operations.

전자장치는 그래픽 처리 동작을 수행하는 중에 합성 타입 및 그래픽 버퍼의 소유 시간을 모니터링하여 그래픽 버퍼의 수를 동적으로 조절할 수 있다. 전자장치는 동작 1813에서 합성 타입을 분석할 수 있다. 합성 타입이 HWC 타입이면 전자장치는 동작 1815에서 이를 인식하고 동작 1817에서 그래픽 버퍼를 트리플 버퍼로 결정할 수 있다. The electronic device can dynamically adjust the number of graphics buffers by monitoring the composition type and possession time of the graphics buffer while performing graphics processing operations. The electronics may analyze the composite type in operation 1813. If the composition type is the HWC type, the electronic device may recognize this in operation 1815 and determine the graphics buffer as a triple buffer in operation 1817.

합성 타입이 GLES 타입이면, 전자장치는 동작 1815에서 이를 인식하고, 동작 1821에서 각 객체들의 그래픽 버퍼 소유 시간을 분석할 수 있다. 전자장치는 그래픽 버퍼의 소유 시간이 일정하면 동작 1825에서 그래픽 버퍼를 더블 버퍼로 설정할 수 있으며, 그래픽 버퍼의 소유 시간이 일정하지 않으면 동작 1817에서 그래픽 버퍼를 트리플 버퍼로 설정할 수 있다. If the composition type is a GLES type, the electronic device may recognize this in operation 1815 and analyze the graphics buffer possession time of each object in operation 1821. If the possession time of the graphics buffer is constant, the electronic device may set the graphics buffer to a double buffer in operation 1825. If the possession time of the graphics buffer is not constant, the electronic device may set the graphics buffer to a triple buffer in operation 1817.

그래픽 버퍼의 수를 설정하면, 각 객체들은 그래픽 버퍼에 데이터를 기록 또는 리드할 수 있으며, 디스플레이를 통해 데이터를 표시할 수 있다. 또한 그래픽 데이터를 처리하는 합성 타입 또는 그래픽 소유 시간이 변경되면, 전자장치는 동적으로 그래픽 버퍼의 수를 조절할 수 있다. By setting the number of graphic buffers, each object can write or read data to the graphic buffer and display the data through the display. Additionally, when the composition type or graphics ownership time for processing graphics data changes, the electronic device can dynamically adjust the number of graphics buffers.

한 실시예에서, 전자장치는 합성 타입이 변경되면, 전자장치는 변경된 합성 타입에 기반하여 그래픽 버퍼의 수를 조절할 수 있다. 예를들면, 그래픽 데이터를 처리하는 전자장치는 동작 1813에서 합성 타입을 모니터링할 수 있다. 합성타입이 GLES 타입에서 HWC 타입으로 변경되면, 전자장치는 동작 1815에서 이를 인식하고, 동작 1817에서 그래픽 버퍼를 더블 버퍼에서 트리플 버로 변경하여 설정할 수 있다. 합성 타입이 HWC 타입에서 GLES 타입으로 변경되면, 전자장치는 동작 1815에서 이를 인식하고 그래픽 버퍼를 더블 버퍼 적용 대상으로 판단할 수 있다. 이후 전자장치는 객체의 버퍼 소유 시간을 모니터링하여 그래픽 버퍼의 수를 조절할 수 있다. In one embodiment, when the composition type is changed, the electronic device may adjust the number of graphics buffers based on the changed composition type. For example, electronics that process graphics data may monitor the composite type in operation 1813. When the composition type is changed from the GLES type to the HWC type, the electronic device recognizes this in operation 1815 and can set the graphics buffer by changing it from a double buffer to a triple buffer in operation 1817. When the composition type is changed from the HWC type to the GLES type, the electronic device may recognize this in operation 1815 and determine that the graphics buffer is subject to double buffer application. Afterwards, the electronic device can monitor the buffer possession time of the object and adjust the number of graphics buffers.

한 실시예에서, 전자장치는 GLES 타입에서 버퍼 소유 시간의 변화에 따라 그래픽 버퍼의 수를 조절할 수 있다. 예를들면, GLES 타입으로 그래픽 처리하는 전자장치는 동작 1821에서 객체들의 버퍼 소유 시간을 모니터링할 수 있다. 그래픽 버퍼를 더블 버퍼로 사용하는 상태에서 객체의 버퍼 소유 시간이 일정하지 않으면, 전자장치는 동작 1823에서 이를 인식하고, 동작 1817에서 그래픽 버퍼를 트리플 버퍼로 조절하여 그래픽 성능이 저하되는 것을 방지할 수 있다. 그래픽 버퍼를 트리플 버퍼로 사용하는 상태에서 객체의 버퍼 소유 시간이 일정하면, 전자장치는 동작 1823에서 이를 인식하고, 동작 1825에서 그래픽 버퍼를 더블 버퍼로 조절하여 메모리 낭비를 방지할 수 있다. In one embodiment, the electronic device may adjust the number of graphics buffers according to changes in buffer ownership time in the GLES type. For example, an electronic device that processes graphics in the GLES type may monitor buffer possession times of objects in operation 1821. If the buffer ownership time of an object is not constant while using the graphics buffer as a double buffer, the electronic device recognizes this in operation 1823 and adjusts the graphics buffer to a triple buffer in operation 1817 to prevent graphics performance from being degraded. there is. If the buffer ownership time of an object is constant while using the graphic buffer as a triple buffer, the electronic device may recognize this in operation 1823 and adjust the graphic buffer to a double buffer in operation 1825 to prevent memory waste.

전자장치는 그래픽버퍼 소유 객체가 2개(예를들면, GLES 타입)이고, 그래픽버퍼 소유 시간이 일정하면, 그래픽 버퍼를 더블 버퍼로 설정할 수 있다. 전자장치는 그래픽버퍼 소유 객체가 3개(예를들면, HWC 타입)이거나, 그래픽버퍼 소유시간이 일정하지 않은 경우, 그래픽 버퍼를 트리플 버퍼로 적용할 수 있다. 어플리케이션이 종료되면, 전자장치는 동작 1827에서 이를 인식하고 어플리케이션의 실행을 종료할 수 있다. If the electronic device has two graphic buffer-owning objects (for example, GLES type) and the graphic buffer ownership time is constant, the graphic buffer can be set to a double buffer. The electronic device can apply the graphic buffer as a triple buffer when there are three objects that own the graphic buffer (for example, HWC type) or when the graphic buffer ownership time is not constant. When the application is terminated, the electronic device may recognize this in operation 1827 and terminate execution of the application.

본 발명의 다양한 실시예에 따른 전자장치는 프레임 드롭에 의한 그래픽 성능을 저하시키지 않는 범위 안에서 최소한의 그래픽버퍼 개수를 산정함으로써 메모리를 절약할 수 있다. 예를들면, 시스템 메모리 부족으로 인해 성능 병목이 빈번히 발생하는 안드로이드와 같은 모바일 시스템에서 시스템 메모리에 그래픽버퍼를 할당할 때 불필요한 그래픽버퍼 할당을 회피함으로써 그래픽 성능을 향상시킬 수 있다. 하기 <표 2>는 해상도에 따른 그래픽버퍼 한 개의 그래픽 버퍼 사이즈가 될 수 있다.Electronic devices according to various embodiments of the present invention can save memory by calculating the minimum number of graphics buffers within a range that does not degrade graphics performance due to frame drops. For example, in mobile systems such as Android, where performance bottlenecks frequently occur due to lack of system memory, graphics performance can be improved by avoiding unnecessary graphics buffer allocation when allocating graphics buffers to system memory. <Table 2> below can be the graphic buffer size of one graphic buffer according to resolution.

해상도resolution 픽셀수number of pixels 그래픽버퍼 사이즈 [KB]Graphic buffer size [KB] WXGAWXGA 1280X8001280X800 40004000 FHDFHD 1290X10801290X1080 81008100 WQXGAWQXGA 2560X16002560X1600 1600016000

하기 <표 3>은 갤럭시탭S(해상도 2560x1600)의 웹 실행 환경에서 그래픽버퍼 할당 정보가 될 수 있으며, <표 4>는 갤럭시탭E(1280x800)의 홈화면에서 그래픽버퍼 할당 정보가 될 수 있다. 최적의 상황에서 각 그래픽버퍼를 트리플/쿼드러플(triple/quadruple)에서 더블 버퍼로 변경 가능한 경우, 갤럭시탭S 에서는 총 61.29MB, 갤럭시탭E 에서는 총 15.85MB 의 메모리를, 그래픽성능 저하 없이 절약할 수 있다.<Table 3> below can be graphic buffer allocation information in the web execution environment of Galaxy Tab S (resolution 2560x1600), and <Table 4> can be graphic buffer allocation information in the home screen of Galaxy Tab E (1280x800). . In the optimal situation, if each graphics buffer can be changed from triple/quadruple to double buffer, a total of 61.29MB of memory in the Galaxy Tab S and 15.85MB in the Galaxy Tab E can be saved without reducing graphics performance. You can.

LayerLayer 그래픽버퍼
사이즈[KB]
graphic buffer
Size [KB]
그래픽버퍼
개수
graphic buffer
Count
총 그래픽버퍼
사이즈 [KB]
Total graphics buffer
Size [KB]
SurfaceView id=8SurfaceView id=8 1600016000 3 -> 23 -> 2 48000 -> 3200048000 -> 32000 SurfaceView id=127SurfaceView id=127 1402014020 3 -> 23 -> 2 42060 -> 2804042060 -> 28040 sbrowsersbrowser 1600016000 3 -> 23 -> 2 48000 -> 3200048000 -> 32000 StatusBarStatusBar 500500 3 -> 23 -> 2 1500 -> 10001500 -> 1000 MultiWindowTrayService
/CenterBar
MultiWindowTrayService
/CenterBar
47.2547.25 3 -> 23 -> 2 141.75 -> 94.5141.75 -> 94.5
MultiWindowTrayService
/AppListWindow
MultiWindowTrayService
/AppListWindow
200200 3 -> 23 -> 2 600 -> 400600 -> 400
FocusedStackFrameFocusedStackFrame 1600016000 3 -> 23 -> 2 48000 -> 3200048000 -> 32000 App 에서 할당한 그래픽버퍼 총 사이즈Total size of graphics buffer allocated by app 188301.75 -> 125534.5188301.75 -> 125534.5

<갤럭시탭E(1280x800)의 홈화면에서 그래픽버퍼 할당 정보><Graphics buffer allocation information on the home screen of Galaxy Tab E (1280x800)> LayerLayer 그래픽버퍼
사이즈[KB]
graphic buffer
Size [KB]
그래픽버퍼
개수
graphic buffer
Count
총 그래픽버퍼
사이즈 [KB]
Total graphics buffer
Size [KB]
LauncherLauncher 40004000 4 -> 24 -> 2 16000 -> 800016000 -> 8000 StatusBarStatusBar 103.12103.12 4 -> 24 -> 2 412.48 -> 206.24412.48 -> 206.24 FocusedStackFrameFocusedStackFrame 40004000 3 -> 23 -> 2 12000 -> 800012000 -> 8000 StrictModeFlashStrictModeFlash 40004000 3 -> 23 -> 2 12000 -> 800012000 -> 8000 MultiWindowTrayService
/CenterBar
MultiWindowTrayService
/CenterBar
13.8313.83 4 -> 24 -> 2 55.32 -> 27.6655.32 -> 27.66
App 에서 할당한 그래픽버퍼 총 사이즈Total size of graphics buffer allocated by app 46867.8 -> 30633.946867.8 -> 30633.9

모바일 시장은 점차 고해상도 디스플레이 환경으로 진행되고 있어, 이에 따른 그래픽버퍼의 사이즈도 커지고 있다. 본 발명의 다양한 실시예에 따른 전자장치는 불필요한 그래픽버퍼를 위한 메모리할당을 최소한으로 설정하여, 시스템 메모리 공간을 절약할 수 있으며, 이로인해 시스템 전반적인 성능 향상을 얻을 수 있다.As the mobile market is gradually moving toward a high-resolution display environment, the size of the graphics buffer is also increasing accordingly. Electronic devices according to various embodiments of the present invention can save system memory space by setting memory allocation for unnecessary graphics buffers to a minimum, thereby improving overall system performance.

본 발명의 다양한 실시예에 따른 전자장치의 동작 방법은, 그래픽 버퍼를 통해 그래픽 표시 기능을 수행하는 어플리케이션을 실행하는 동작; 상기 실행되는 어플리케이션의 그래픽 처리 조건을 분석하여 상기 그래픽 버퍼의 수를 설정하는 동작; 및 상기 그래픽 버퍼에 기록되는 그래픽 데이터를 처리하여 디스플레이에 표시하는 동작을 포함할 수 있다. A method of operating an electronic device according to various embodiments of the present invention includes executing an application that performs a graphic display function through a graphic buffer; Analyzing graphics processing conditions of the executing application and setting the number of graphics buffers; and an operation of processing graphic data recorded in the graphic buffer and displaying it on a display.

상기 그래픽 버퍼의 수를 설정하는 동작은, 상기 그래픽 버퍼를 소유하는 객체의 수가 3개 이상이면 상기 그래픽 버퍼를 트리플 버퍼로 설정할 수 있다. The operation of setting the number of graphic buffers can set the graphic buffer as a triple buffer if the number of objects owning the graphic buffer is three or more.

상기 그래픽 버퍼의 수를 설정하는 동작은, 상기 그래픽 버퍼를 소유하는 객체의 수가 2개 이하이면 상기 그래픽 버퍼를 더블 버퍼로 설정할 수 있다. The operation of setting the number of graphic buffers may set the graphic buffer as a double buffer if the number of objects owning the graphic buffer is two or less.

상기 그래픽 버퍼의 수를 설정하는 동작은, 상기 그래픽 버퍼를 소유하는 객체의 버퍼 소유 시간을 모니터링하는 동작; 및 상기 버퍼 소유 시간이 일정하지 않으면 상기 그래픽 버퍼를 트리플 버퍼로 설정하는 동작을 더 포함할 수 있다. Setting the number of graphic buffers may include monitoring a buffer possession time of an object that owns the graphic buffer; And if the buffer possession time is not constant, the operation of setting the graphic buffer to a triple buffer may be further included.

상기 버퍼 소유 시간을 모니터링하는 동작은, 상기 그래픽 버퍼의 출력 요청 시간에서 버퍼 요청 시간을 감산하여 상기 버퍼 소유 시간을 계산하는 동작을 포함할 수 있다. Monitoring the buffer possession time may include calculating the buffer possession time by subtracting the buffer request time from the output request time of the graphic buffer.

상기 그래픽 버퍼 수를 설정하는 동작은, 상기 그래픽 버퍼를 소유하는 객체의 수가 3개 이상이면 상기 그래픽 버퍼를 트리플 버퍼로 설정하는 동작; 상기 객체의 수가 2개 이하이면 상기 그래픽 버퍼를 소유하는 객체의 버퍼 소유 시간을 모니터링하는 동작; 상기 버퍼 소유 시간이 일정하지 않으면 상기 그래픽 버퍼를 트리플 버퍼로 설정하는 동작; 및, 상기 버퍼 소유 시간이 일정하면 상기 그래픽 버퍼를 더블 버퍼로 설정하는 동작을 포함할 수 있다. Setting the number of graphic buffers may include setting the graphic buffer as a triple buffer if the number of objects owning the graphic buffer is 3 or more; Monitoring the buffer ownership time of an object owning the graphic buffer if the number of objects is two or less; setting the graphic buffer as a triple buffer if the buffer possession time is not constant; And, if the buffer possession time is constant, it may include setting the graphic buffer as a double buffer.

상기 그래픽 버퍼의 수를 설정하는 동작은, 실행중인 어플리케이션의 상기 합성 타입을 모니터링하는 동작; 상기 합성 타입이 정보가 디스플레이 컨트롤러의 하드웨어 합성기를 사용하는 제2 합성 타입이면 상기 그래픽 버퍼를 트리플 버퍼로 설정하는 동작; 및 상기 합성 타입이 그래픽 라이브러리를 사용하는 제1 합성 타입이면 상기 그래픽 버퍼를 더블 버퍼로 설정하는 동작을 포함할 수 있다. The operation of setting the number of graphic buffers includes: monitoring the composition type of a running application; setting the graphics buffer as a triple buffer if the composition type is a second composition type in which information uses a hardware compositor of a display controller; and, if the composition type is a first composition type using a graphics library, setting the graphics buffer as a double buffer.

상기 그래픽 버퍼의 수를 설정하는 동작은, 상기 합성 타입이 제1 합성타입이면 상기 객체의 버퍼 소유시간을 모니터링하는 동작; 및 상기 버퍼 소유 시간이 일정하지 않으면 상기 그래픽 버퍼를 트리플 버퍼로 설정하는 동작을 더 포함할 수 있다. The operation of setting the number of graphic buffers may include: monitoring the buffer possession time of the object if the composition type is a first composition type; And if the buffer possession time is not constant, the operation of setting the graphic buffer to a triple buffer may be further included.

상기 객체의 버퍼 소유 시간을 모니터링하는 동작은, 상기 그래픽 버퍼의 출력 요청 시간에서 버퍼 요청 시간을 감산하여 상기 버퍼 소유 시간을 계산하는 동작을 포함할 수 있다. Monitoring the buffer possession time of the object may include calculating the buffer possession time by subtracting the buffer request time from the output request time of the graphic buffer.

Claims (20)

전자 장치에 있어서,
적어도 두개의 객체들에 의해 억세스되는 그래픽 버퍼;
디스플레이; 및
상기 그래픽 버퍼 및 상기 디스플레이에 기능적으로 연결되는 프로세서를 포함하며,
상기 프로세서는,
실행되는 어플리케이션의 합성 타입을 식별하고,
상기 합성 타입이 소프트웨어를 이용하여 합성하는 제1 합성 타입으로 식별되면, 상기 그래픽 버퍼를 더블 버퍼로 설정하고,
상기 합성 타입이 하드웨어를 이용하여 합성하는 제2 합성 타입으로 식별되면, 상기 그래픽 버퍼를 트리플 버퍼로 설정하고,
상기 그래픽 버퍼에 기록되는 그래픽 데이터를 상기 디스플레이를 통해 표시하고,
상기 합성 타입이 상기 제1 합성 타입이면서, 상기 그래픽 버퍼가 상기 더블 버퍼로 설정된 상태에서, 상기 그래픽 버퍼를 소유하는 객체들이 상기 그래픽 버퍼를 소유하는 시간을 모니터링하고,
상기 그래픽 버퍼를 소유하는 시간이 일정하지 않다고 판단되면, 상기 그래픽 버퍼를 상기 트리플 버퍼로 설정하고,
상기 합성 타입이 상기 제1 합성 타입이되, 상기 그래픽 버퍼가 상기 트리플 버퍼로 설정된 상태에서, 상기 그래픽 버퍼를 소유하는 시간이 일정하다고 판단되면, 상기 그래픽 버퍼를 상기 더블 버퍼로 설정하도록 설정된 전자 장치.
In electronic devices,
A graphics buffer accessed by at least two objects;
display; and
A processor functionally connected to the graphics buffer and the display,
The processor,
Identify the composite type of the application being executed,
If the composition type is identified as a first composition type synthesized using software, set the graphics buffer to a double buffer,
If the synthesis type is identified as a second synthesis type synthesized using hardware, set the graphics buffer as a triple buffer,
Displaying graphic data recorded in the graphic buffer through the display,
When the composition type is the first composition type and the graphics buffer is set to the double buffer, monitor the time that objects owning the graphics buffer own the graphics buffer,
If it is determined that the time to own the graphic buffer is not constant, set the graphic buffer to the triple buffer,
An electronic device configured to set the graphics buffer to the double buffer when the composition type is the first composition type, and the graphics buffer is set to the triple buffer, and the possession time of the graphics buffer is determined to be constant. .
삭제delete 삭제delete 삭제delete 제 1 항에 있어서,
상기 프로세서는,
상기 객체들이 상기 그래픽 버퍼의 사용을 요청하는 시간 및 상기 객체들이 상기 그래픽 버퍼의 사용의 종료를 전달하는 시간에 기반하여 상기 그래픽 버퍼를 소유하는 시간을 계산하도록 설정된 전자 장치.
According to claim 1,
The processor,
An electronic device configured to calculate the time to own the graphics buffer based on the time the objects request use of the graphics buffer and the time the objects communicate termination of use of the graphics buffer.
삭제delete 제 1 항에 있어서,
상기 프로세서는,
상기 그래픽 버퍼가 상기 더블 버퍼로 설정된 상태에서, 상기 합성 타입이 상기 제1 합성 타입에서 상기 제2 합성 타입으로 변경되었다고 판단되면, 상기 그래픽 버퍼를 상기 트리플 버퍼로 설정하고,
상기 그래픽 버퍼가 상기 트리플 버퍼로 설정된 상태에서, 상기 합성 타입이 상기 제2 합성 타입에서 상기 제1 합성 타입으로 변경되었다고 판단되면, 상기 그래픽 버퍼를 상기 더블 버퍼로 설정하도록 설정된 전자 장치.
According to claim 1,
The processor,
With the graphic buffer set to the double buffer, if it is determined that the composition type has changed from the first composition type to the second composition type, setting the graphic buffer to the triple buffer,
When the graphic buffer is set to the triple buffer and it is determined that the composition type has changed from the second composition type to the first composition type, the electronic device is configured to set the graphics buffer to the double buffer.
제 1 항에 있어서,
상기 제1 합성 타입은 그래픽 라이브러리를 사용하는 타입이고,
상기 제2 합성 타입은 디스플레이 컨트롤러 상 하드웨어 합성기를 사용하는 타입인 전자 장치.
According to claim 1,
The first composition type is a type that uses a graphics library,
The second synthesis type is an electronic device that uses a hardware synthesizer on a display controller.
삭제delete 삭제delete 삭제delete 전자 장치의 동작 방법에 있어서,
그래픽 버퍼를 통해 그래픽 표시 기능을 수행하는 어플리케이션을 실행하는 동작;
상기 실행되는 어플리케이션의 합성 타입을 식별하는 동작;
상기 합성 타입이 소프트웨어를 이용하여 합성하는 제1 합성 타입으로 식별되면, 상기 그래픽 버퍼를 더블 버퍼로 설정하는 동작;
상기 합성 타입이 하드웨어를 이용하여 합성하는 제2 합성 타입으로 식별되면, 상기 그래픽 버퍼를 트리플 버퍼로 설정하는 동작;
상기 그래픽 버퍼에 기록되는 그래픽 데이터를 합성하여 디스플레이에 표시하는 동작;
상기 합성 타입이 상기 제1 합성 타입이면서, 상기 그래픽 버퍼가 상기 더블 버퍼로 설정된 상태에서, 상기 그래픽 버퍼를 소유하는 객체들이 상기 그래픽 버퍼를 소유하는 시간을 모니터링하는 동작;
상기 그래픽 버퍼를 소유하는 시간이 일정하지 않다고 판단되면, 상기 그래픽 버퍼를 상기 트리플 버퍼로 설정하는 동작; 및
상기 합성 타입이 상기 제1 합성 타입이되, 상기 그래픽 버퍼가 상기 트리플 버퍼로 설정된 상태에서, 상기 그래픽 버퍼를 소유하는 시간이 일정하다고 판단되면, 상기 그래픽 버퍼를 상기 더블 버퍼로 설정하는 동작을 포함하는 전자 장치의 동작 방법.
In a method of operating an electronic device,
An operation of executing an application that performs a graphic display function through a graphic buffer;
Identifying a composite type of the executing application;
If the composition type is identified as a first composition type synthesized using software, setting the graphics buffer as a double buffer;
If the composition type is identified as a second composition type synthesized using hardware, setting the graphics buffer as a triple buffer;
An operation of combining graphic data recorded in the graphic buffer and displaying it on a display;
When the composition type is the first composition type and the graphics buffer is set to the double buffer, monitoring the time that objects owning the graphics buffer owns the graphics buffer;
If it is determined that the possession time of the graphic buffer is not constant, setting the graphic buffer to the triple buffer; and
When the composition type is the first composition type, and the graphics buffer is set to the triple buffer, and the time for owning the graphics buffer is determined to be constant, setting the graphics buffer to the double buffer. A method of operating an electronic device.
삭제delete 삭제delete 삭제delete 제 12 항에 있어서,
상기 그래픽 버퍼를 소유하는 시간을 모니터링하는 동작은,
상기 객체들이 상기 그래픽 버퍼의 사용을 요청하는 시간 및 상기 객체들이 상기 그래픽 버퍼의 사용의 종료를 전달하는 시간에 기반하여 상기 그래픽 버퍼를 소유하는 시간을 계산하는 동작을 포함하는 전자 장치의 동작 방법.
According to claim 12,
The operation of monitoring the time to own the graphics buffer is:
A method of operating an electronic device comprising calculating a time to own the graphics buffer based on a time when the objects request use of the graphics buffer and a time when the objects signal an end of use of the graphics buffer.
삭제delete 제 12 항에 있어서,
상기 그래픽 버퍼가 상기 더블 버퍼로 설정된 상태에서, 상기 합성 타입이 상기 제1 합성 타입에서 상기 제2 합성 타입으로 변경되었다고 판단되면, 상기 그래픽 버퍼를 상기 트리플 버퍼로 설정하는 동작; 및
상기 그래픽 버퍼가 상기 트리플 버퍼로 설정된 상태에서, 상기 합성 타입이 상기 제2 합성 타입에서 상기 제1 합성 타입으로 변경되었다고 판단되면, 상기 그래픽 버퍼를 상기 더블 버퍼로 설정하는 동작을 더 포함하는 전자 장치의 동작 방법.
According to claim 12,
When the graphic buffer is set to the double buffer and it is determined that the composition type has changed from the first composition type to the second composition type, setting the graphic buffer to the triple buffer; and
When the graphic buffer is set to the triple buffer and it is determined that the composition type has changed from the second composition type to the first composition type, the electronic device further includes setting the graphics buffer to the double buffer. How it works.
삭제delete 삭제delete
KR1020160063564A 2016-05-24 2016-05-24 Electronic apparatus and operating method thereof KR102577184B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020160063564A KR102577184B1 (en) 2016-05-24 2016-05-24 Electronic apparatus and operating method thereof
PCT/KR2017/002708 WO2017204443A1 (en) 2016-05-24 2017-03-14 Electronic device and operating method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160063564A KR102577184B1 (en) 2016-05-24 2016-05-24 Electronic apparatus and operating method thereof

Publications (2)

Publication Number Publication Date
KR20170132551A KR20170132551A (en) 2017-12-04
KR102577184B1 true KR102577184B1 (en) 2023-09-11

Family

ID=60411446

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160063564A KR102577184B1 (en) 2016-05-24 2016-05-24 Electronic apparatus and operating method thereof

Country Status (2)

Country Link
KR (1) KR102577184B1 (en)
WO (1) WO2017204443A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885405B (en) * 2019-02-02 2021-11-12 珠海金山网络游戏科技有限公司 Dynamic allocation method and system, computing device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110187751A1 (en) 2010-02-04 2011-08-04 Canon Kabushiki Kaisha Display control apparatus and method for controlling the same
US20140016710A1 (en) 2012-07-10 2014-01-16 Cisco Technology, Inc. Decoded picture buffer size management
US20140016711A1 (en) 2012-07-10 2014-01-16 Cisco Technology, Inc. Support for Variable Number of Picture Buffers in Decoded Picture Buffer
US20140320698A1 (en) 2013-04-29 2014-10-30 Microsoft Corporation Systems and methods for capturing photo sequences with a camera
WO2015048393A1 (en) 2013-09-30 2015-04-02 Google Inc. Methods and systems for determining memory usage ratings for a process configured to run on a device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3593439B2 (en) * 1997-06-09 2004-11-24 株式会社日立製作所 Image processing device
US7681200B2 (en) * 2005-07-22 2010-03-16 Microsoft Corporation Secure hardware desktop buffer composition
US8854381B2 (en) * 2009-09-03 2014-10-07 Advanced Micro Devices, Inc. Processing unit that enables asynchronous task dispatch
KR101745392B1 (en) * 2011-08-12 2017-06-09 (주)테크노니아 Program analyzing device and computer readble recording medium recording analyzing program
KR102089471B1 (en) * 2012-11-30 2020-03-17 삼성전자주식회사 Method and apparatus for tile based rendering
US9563466B2 (en) * 2013-11-05 2017-02-07 Intel Corporation Method and apparatus for supporting programmable software context state execution during hardware context restore flow

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110187751A1 (en) 2010-02-04 2011-08-04 Canon Kabushiki Kaisha Display control apparatus and method for controlling the same
US20140016710A1 (en) 2012-07-10 2014-01-16 Cisco Technology, Inc. Decoded picture buffer size management
US20140016711A1 (en) 2012-07-10 2014-01-16 Cisco Technology, Inc. Support for Variable Number of Picture Buffers in Decoded Picture Buffer
US20140320698A1 (en) 2013-04-29 2014-10-30 Microsoft Corporation Systems and methods for capturing photo sequences with a camera
WO2015048393A1 (en) 2013-09-30 2015-04-02 Google Inc. Methods and systems for determining memory usage ratings for a process configured to run on a device

Also Published As

Publication number Publication date
KR20170132551A (en) 2017-12-04
WO2017204443A1 (en) 2017-11-30

Similar Documents

Publication Publication Date Title
KR102488333B1 (en) Electronic eevice for compositing graphic data and method thereof
CN107257954B (en) Apparatus and method for providing screen mirroring service
EP3337169B1 (en) Method and device for adjusting resolution of electronic device
US20180011676A1 (en) Electronic device for controlling plurality of displays and control method
US20190187758A1 (en) Flexible device and operating method therefor
KR20170105213A (en) Electronic device and method for driving display thereof
KR102606693B1 (en) Electronic device and method for controlling operation thereof
KR102587138B1 (en) Electronic device and method of controlling display in the electronic device
US10365765B2 (en) Electronic device and method for processing touch input
KR102398027B1 (en) Dynamic preview display method of electronic apparatus and electronic apparatus thereof
US10719209B2 (en) Method for outputting screen and electronic device supporting the same
KR20180024337A (en) A driving method for a display including a curved display area and a display driving circuit and an electronic device supporting the same
US10387096B2 (en) Electronic device having multiple displays and method for operating same
KR20160143453A (en) Electronic Device AND Memory Management Method Thereof
KR102467434B1 (en) Device for Controlling Brightness of Display and Method Thereof
KR20170119964A (en) Electronic device and controlling method thereof
KR102594858B1 (en) Electronic device and method for image synthesis and restoration
KR20160137258A (en) Electronic apparatus and method for displaying screen thereof
KR102577184B1 (en) Electronic apparatus and operating method thereof
KR102491499B1 (en) Device For Reducing Current Consumption and Method Thereof
US11061544B2 (en) Method and electronic device for processing input
KR102630191B1 (en) Electronic apparatus and method for controlling thereof
KR20170097898A (en) Electronic apparatus and method for controlling a display of the electronic apparatus
KR20180116712A (en) Electronic device and operation method of thereof

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
AMND Amendment
E601 Decision to refuse application
AMND Amendment
X701 Decision to grant (after re-examination)
GRNT Written decision to grant