Loading libs/hwui/DisplayListRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -826,7 +826,7 @@ bool DisplayList::replay(OpenGLRenderer& renderer, uint32_t width, while (!mReader.eof()) { int op = mReader.readInt(); if (op & OP_MAY_BE_SKIPPED_MASK) { int32_t skip = mReader.readInt() * 4; int32_t skip = mReader.readInt(); if (CC_LIKELY(flags & kReplayFlag_ClipChildren)) { mReader.skip(skip); DISPLAY_LIST_LOGD("%s%s skipping %d bytes", (char*) indent, Loading libs/hwui/DisplayListRenderer.h +4 −5 Original line number Diff line number Diff line Loading @@ -656,9 +656,8 @@ private: if (reject) { mWriter.writeInt(OP_MAY_BE_SKIPPED_MASK | drawOp); mWriter.writeInt(0xdeaddead); uint32_t* location = reject ? mWriter.peek32(mWriter.size() - sizeof(int32_t)) : NULL; return location; mBufferSize = mWriter.size(); return mWriter.peek32(mBufferSize - sizeof(int32_t)); } mWriter.writeInt(drawOp); return NULL; Loading @@ -666,8 +665,7 @@ private: inline void addSkip(uint32_t* location) { if (location) { *location = (int32_t) (mWriter.peek32( mWriter.size() - sizeof(int32_t)) - location); *location = (int32_t) (mWriter.size() - mBufferSize); } } Loading Loading @@ -822,6 +820,7 @@ private: Vector<SkMatrix*> mMatrices; SkWriter32 mWriter; uint32_t mBufferSize; int mRestoreSaveCount; Loading Loading
libs/hwui/DisplayListRenderer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -826,7 +826,7 @@ bool DisplayList::replay(OpenGLRenderer& renderer, uint32_t width, while (!mReader.eof()) { int op = mReader.readInt(); if (op & OP_MAY_BE_SKIPPED_MASK) { int32_t skip = mReader.readInt() * 4; int32_t skip = mReader.readInt(); if (CC_LIKELY(flags & kReplayFlag_ClipChildren)) { mReader.skip(skip); DISPLAY_LIST_LOGD("%s%s skipping %d bytes", (char*) indent, Loading
libs/hwui/DisplayListRenderer.h +4 −5 Original line number Diff line number Diff line Loading @@ -656,9 +656,8 @@ private: if (reject) { mWriter.writeInt(OP_MAY_BE_SKIPPED_MASK | drawOp); mWriter.writeInt(0xdeaddead); uint32_t* location = reject ? mWriter.peek32(mWriter.size() - sizeof(int32_t)) : NULL; return location; mBufferSize = mWriter.size(); return mWriter.peek32(mBufferSize - sizeof(int32_t)); } mWriter.writeInt(drawOp); return NULL; Loading @@ -666,8 +665,7 @@ private: inline void addSkip(uint32_t* location) { if (location) { *location = (int32_t) (mWriter.peek32( mWriter.size() - sizeof(int32_t)) - location); *location = (int32_t) (mWriter.size() - mBufferSize); } } Loading Loading @@ -822,6 +820,7 @@ private: Vector<SkMatrix*> mMatrices; SkWriter32 mWriter; uint32_t mBufferSize; int mRestoreSaveCount; Loading