diff options
-rw-r--r-- | libs/hwui/Android.common.mk | 11 | ||||
-rw-r--r-- | libs/hwui/DeferredLayerUpdater.cpp | 5 | ||||
-rw-r--r-- | libs/hwui/DeferredLayerUpdater.h | 3 | ||||
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 5 | ||||
-rw-r--r-- | libs/hwui/tests/TestContext.cpp | 6 |
5 files changed, 8 insertions, 22 deletions
diff --git a/libs/hwui/Android.common.mk b/libs/hwui/Android.common.mk index 38e8be907720..ed88237bb04d 100644 --- a/libs/hwui/Android.common.mk +++ b/libs/hwui/Android.common.mk @@ -1,10 +1,6 @@ # getConfig in external/skia/include/core/SkBitmap.h is deprecated. # Allow Gnu extension: in-class initializer of static 'const float' member. # DeferredLayerUpdater.h: private field 'mRenderThread' is not used. -LOCAL_CLANG_CFLAGS += \ - -Wno-deprecated-declarations \ - -Wno-gnu-static-float-init \ - -Wno-unused-private-field LOCAL_SRC_FILES := \ font/CacheTexture.cpp \ @@ -119,9 +115,4 @@ endif # Defaults for ATRACE_TAG and LOG_TAG for libhwui LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" LOCAL_CFLAGS += -Wall -Wno-unused-parameter -Wunreachable-code -LOCAL_CFLAGS += -ffast-math -O3 - -# b/21698669 -ifneq ($(USE_CLANG_PLATFORM_BUILD),true) - LOCAL_CFLAGS += -Werror -endif +LOCAL_CFLAGS += -ffast-math -O3 -Werror diff --git a/libs/hwui/DeferredLayerUpdater.cpp b/libs/hwui/DeferredLayerUpdater.cpp index a17904e31047..38f2363f3532 100644 --- a/libs/hwui/DeferredLayerUpdater.cpp +++ b/libs/hwui/DeferredLayerUpdater.cpp @@ -24,14 +24,13 @@ namespace android { namespace uirenderer { -DeferredLayerUpdater::DeferredLayerUpdater(renderthread::RenderThread& thread, Layer* layer) +DeferredLayerUpdater::DeferredLayerUpdater(Layer* layer) : mSurfaceTexture(nullptr) , mTransform(nullptr) , mNeedsGLContextAttach(false) , mUpdateTexImage(false) , mLayer(layer) - , mCaches(Caches::getInstance()) - , mRenderThread(thread) { + , mCaches(Caches::getInstance()) { mWidth = mLayer->layer.getWidth(); mHeight = mLayer->layer.getHeight(); mBlend = mLayer->isBlend(); diff --git a/libs/hwui/DeferredLayerUpdater.h b/libs/hwui/DeferredLayerUpdater.h index 82f2741b7478..df7c594cf187 100644 --- a/libs/hwui/DeferredLayerUpdater.h +++ b/libs/hwui/DeferredLayerUpdater.h @@ -35,7 +35,7 @@ class DeferredLayerUpdater : public VirtualLightRefBase { public: // Note that DeferredLayerUpdater assumes it is taking ownership of the layer // and will not call incrementRef on it as a result. - ANDROID_API DeferredLayerUpdater(renderthread::RenderThread& thread, Layer* layer); + ANDROID_API DeferredLayerUpdater(Layer* layer); ANDROID_API ~DeferredLayerUpdater(); ANDROID_API bool setSize(int width, int height) { @@ -101,7 +101,6 @@ private: Layer* mLayer; Caches& mCaches; - renderthread::RenderThread& mRenderThread; void doUpdateTexImage(); }; diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 6d9acd429279..a3a0163f2e08 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -271,16 +271,15 @@ void RenderProxy::runWithGlContext(RenderTask* gltask) { postAndWait(task); } -CREATE_BRIDGE2(createTextureLayer, RenderThread* thread, CanvasContext* context) { +CREATE_BRIDGE1(createTextureLayer, CanvasContext* context) { Layer* layer = args->context->createTextureLayer(); if (!layer) return nullptr; - return new DeferredLayerUpdater(*args->thread, layer); + return new DeferredLayerUpdater(layer); } DeferredLayerUpdater* RenderProxy::createTextureLayer() { SETUP_TASK(createTextureLayer); args->context = mContext; - args->thread = &mRenderThread; void* retval = postAndWait(task); DeferredLayerUpdater* layer = reinterpret_cast<DeferredLayerUpdater*>(retval); return layer; diff --git a/libs/hwui/tests/TestContext.cpp b/libs/hwui/tests/TestContext.cpp index 3687a5003471..cebe7650dea2 100644 --- a/libs/hwui/tests/TestContext.cpp +++ b/libs/hwui/tests/TestContext.cpp @@ -57,10 +57,7 @@ sp<Surface> TestContext::surface() { } void TestContext::waitForVsync() { -#if HWUI_NULL_GPU - return; -#endif - +#if !HWUI_NULL_GPU // Request vsync mDisplayEventReceiver.requestNextVsync(); @@ -70,6 +67,7 @@ void TestContext::waitForVsync() { // Drain it DisplayEventReceiver::Event buf[100]; while (mDisplayEventReceiver.getEvents(buf, 100) > 0) { } +#endif } } // namespace test |