Loading libs/hwui/AmbientShadow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ inline void computeBufferSize(int* totalVertexCount, int* totalIndexCount, *totalUmbraCount = 0; if (!isCasterOpaque) { // Add the centroid if occluder is translucent. *totalVertexCount++; (*totalVertexCount)++; *totalIndexCount += 2 * innerVertexCount + 1; *totalUmbraCount = innerVertexCount; } Loading libs/hwui/Android.mk +94 −91 Original line number Diff line number Diff line Loading @@ -106,12 +106,15 @@ ifeq ($(USE_OPENGL_RENDERER),true) endif ifdef HWUI_COMPILE_FOR_PERF # TODO: Non-arm? LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs endif # Defaults for ATRACE_TAG and LOG_TAG for libhwui LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code include external/stlport/libstlport.mk include $(BUILD_SHARED_LIBRARY) Loading libs/hwui/DeferredDisplayList.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -333,7 +333,7 @@ private: class RestoreToCountBatch : public Batch { public: RestoreToCountBatch(const StateOp* op, const DeferredDisplayState* state, int restoreCount) : mOp(op), mState(state), mRestoreCount(restoreCount) {} mState(state), mRestoreCount(restoreCount) {} virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int index) { DEFER_LOGD("batch %p restoring to count %d", this, mRestoreCount); Loading @@ -345,7 +345,6 @@ public: private: // we use the state storage for the RestoreToCountOp, but don't replay the op itself const StateOp* mOp; const DeferredDisplayState* mState; /* Loading Loading @@ -700,7 +699,6 @@ void DeferredDisplayList::discardDrawingBatches(const unsigned int maxIndex) { for (unsigned int i = mEarliestUnclearedIndex; i <= maxIndex; i++) { // leave deferred state ops alone for simplicity (empty save restore pairs may now exist) if (mBatches[i] && mBatches[i]->purelyDrawBatch()) { DrawBatch* b = (DrawBatch*) mBatches[i]; delete mBatches[i]; mBatches.replaceAt(NULL, i); } Loading libs/hwui/DeferredDisplayList.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public: }; class DeferredDisplayList { friend class DeferStateStruct; // used to give access to allocator friend struct DeferStateStruct; // used to give access to allocator public: DeferredDisplayList(const Rect& bounds, bool avoidOverdraw = true) : mBounds(bounds), mAvoidOverdraw(avoidOverdraw) { Loading libs/hwui/DisplayList.h +1 −2 Original line number Diff line number Diff line Loading @@ -91,8 +91,7 @@ private: std::vector<SkPath> mTempPaths; }; class DeferStateStruct : public PlaybackStateStruct { public: struct DeferStateStruct : public PlaybackStateStruct { DeferStateStruct(DeferredDisplayList& deferredList, OpenGLRenderer& renderer, int replayFlags) : PlaybackStateStruct(renderer, replayFlags, &(deferredList.mAllocator)), mDeferredList(deferredList) {} Loading Loading
libs/hwui/AmbientShadow.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ inline void computeBufferSize(int* totalVertexCount, int* totalIndexCount, *totalUmbraCount = 0; if (!isCasterOpaque) { // Add the centroid if occluder is translucent. *totalVertexCount++; (*totalVertexCount)++; *totalIndexCount += 2 * innerVertexCount + 1; *totalUmbraCount = innerVertexCount; } Loading
libs/hwui/Android.mk +94 −91 Original line number Diff line number Diff line Loading @@ -106,12 +106,15 @@ ifeq ($(USE_OPENGL_RENDERER),true) endif ifdef HWUI_COMPILE_FOR_PERF # TODO: Non-arm? LOCAL_CFLAGS += -fno-omit-frame-pointer -marm -mapcs endif # Defaults for ATRACE_TAG and LOG_TAG for libhwui LOCAL_CFLAGS += -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code include external/stlport/libstlport.mk include $(BUILD_SHARED_LIBRARY) Loading
libs/hwui/DeferredDisplayList.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -333,7 +333,7 @@ private: class RestoreToCountBatch : public Batch { public: RestoreToCountBatch(const StateOp* op, const DeferredDisplayState* state, int restoreCount) : mOp(op), mState(state), mRestoreCount(restoreCount) {} mState(state), mRestoreCount(restoreCount) {} virtual status_t replay(OpenGLRenderer& renderer, Rect& dirty, int index) { DEFER_LOGD("batch %p restoring to count %d", this, mRestoreCount); Loading @@ -345,7 +345,6 @@ public: private: // we use the state storage for the RestoreToCountOp, but don't replay the op itself const StateOp* mOp; const DeferredDisplayState* mState; /* Loading Loading @@ -700,7 +699,6 @@ void DeferredDisplayList::discardDrawingBatches(const unsigned int maxIndex) { for (unsigned int i = mEarliestUnclearedIndex; i <= maxIndex; i++) { // leave deferred state ops alone for simplicity (empty save restore pairs may now exist) if (mBatches[i] && mBatches[i]->purelyDrawBatch()) { DrawBatch* b = (DrawBatch*) mBatches[i]; delete mBatches[i]; mBatches.replaceAt(NULL, i); } Loading
libs/hwui/DeferredDisplayList.h +1 −1 Original line number Diff line number Diff line Loading @@ -79,7 +79,7 @@ public: }; class DeferredDisplayList { friend class DeferStateStruct; // used to give access to allocator friend struct DeferStateStruct; // used to give access to allocator public: DeferredDisplayList(const Rect& bounds, bool avoidOverdraw = true) : mBounds(bounds), mAvoidOverdraw(avoidOverdraw) { Loading
libs/hwui/DisplayList.h +1 −2 Original line number Diff line number Diff line Loading @@ -91,8 +91,7 @@ private: std::vector<SkPath> mTempPaths; }; class DeferStateStruct : public PlaybackStateStruct { public: struct DeferStateStruct : public PlaybackStateStruct { DeferStateStruct(DeferredDisplayList& deferredList, OpenGLRenderer& renderer, int replayFlags) : PlaybackStateStruct(renderer, replayFlags, &(deferredList.mAllocator)), mDeferredList(deferredList) {} Loading