Skip to content

Commit

Permalink
Add board file flag for glReadPixels screenshot path
Browse files Browse the repository at this point in the history
Backported from N:
7cc6220

This kills the need for a global cflag. Device must set:
TARGET_FORCE_SCREENSHOT_CPU_PATH := true
  • Loading branch information
Ziyann committed Sep 15, 2016
1 parent 0b467bc commit 28d48ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/gui/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ LOCAL_SHARED_LIBRARIES := \
libutils \
liblog

ifeq ($(TARGET_FORCE_SCREENSHOT_CPU_PATH), true)
LOCAL_CFLAGS += -DFORCE_SCREENSHOT_CPU_PATH
endif

LOCAL_MODULE := libgui

Expand Down
3 changes: 3 additions & 0 deletions services/surfaceflinger/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ LOCAL_SRC_FILES := \
LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\"
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES

ifeq ($(TARGET_FORCE_SCREENSHOT_CPU_PATH),true)
LOCAL_CFLAGS += -DFORCE_SCREENSHOT_CPU_PATH
endif
ifeq ($(TARGET_BOARD_PLATFORM),omap4)
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
endif
Expand Down

0 comments on commit 28d48ca

Please sign in to comment.