diff options
author | John Reck <jreck@google.com> | 2014-05-05 16:39:37 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-05-05 16:39:37 -0700 |
commit | e4280baaa709c74d86cf6a389a4674ca665f5af6 (patch) | |
tree | cbcc898071c3e758ce5f6b32f1002c1d2dd1352b /libs | |
parent | f9be77940e365036fecd8cc0e491e8545c34e79b (diff) | |
download | frameworks_base-e4280baaa709c74d86cf6a389a4674ca665f5af6.zip frameworks_base-e4280baaa709c74d86cf6a389a4674ca665f5af6.tar.gz frameworks_base-e4280baaa709c74d86cf6a389a4674ca665f5af6.tar.bz2 |
Implement loadSystemProperties
Bug: 14087580
Change-Id: I7153f38c70b554a78c56a0e794da929fc401ee7a
Diffstat (limited to 'libs')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 13 | ||||
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.h | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 31bb61a..c2806fa 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -98,6 +98,19 @@ void RenderProxy::setFrameInterval(nsecs_t frameIntervalNanos) { post(task); } +CREATE_BRIDGE0(loadSystemProperties) { + bool needsRedraw = false; + if (Caches::hasInstance()) { + needsRedraw = Caches::getInstance().initProperties(); + } + return (void*) needsRedraw; +} + +bool RenderProxy::loadSystemProperties() { + SETUP_TASK(loadSystemProperties); + return (bool) postAndWait(task); +} + CREATE_BRIDGE2(initialize, CanvasContext* context, EGLNativeWindowType window) { return (void*) args->context->initialize(args->window); } diff --git a/libs/hwui/renderthread/RenderProxy.h b/libs/hwui/renderthread/RenderProxy.h index 984cc65..013c3bd 100644 --- a/libs/hwui/renderthread/RenderProxy.h +++ b/libs/hwui/renderthread/RenderProxy.h @@ -61,6 +61,7 @@ public: ANDROID_API virtual ~RenderProxy(); ANDROID_API void setFrameInterval(nsecs_t frameIntervalNanos); + ANDROID_API bool loadSystemProperties(); ANDROID_API bool initialize(const sp<ANativeWindow>& window); ANDROID_API void updateSurface(const sp<ANativeWindow>& window); |