diff options
author | John Reck <jreck@google.com> | 2014-03-12 13:56:30 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-03-12 13:56:30 -0700 |
commit | e18264b079481a244b30e3f71012c53bbd861f92 (patch) | |
tree | 0127f3fc60aa351108ee8abd8ee180a5b193b03e /libs/hwui | |
parent | 5b568aa04a91786962af1ab372b5a62481eea8cc (diff) | |
download | frameworks_base-e18264b079481a244b30e3f71012c53bbd861f92.zip frameworks_base-e18264b079481a244b30e3f71012c53bbd861f92.tar.gz frameworks_base-e18264b079481a244b30e3f71012c53bbd861f92.tar.bz2 |
Rename DisplayList->RenderNode
Change-Id: Id42e23c9a1a6eb6eaeafef707ced7fa6887b03d0
Diffstat (limited to 'libs/hwui')
-rw-r--r-- | libs/hwui/Caches.cpp | 6 | ||||
-rw-r--r-- | libs/hwui/Caches.h | 6 | ||||
-rw-r--r-- | libs/hwui/DeferredLayerUpdater.cpp | 2 | ||||
-rw-r--r-- | libs/hwui/DeferredLayerUpdater.h | 4 | ||||
-rw-r--r-- | libs/hwui/DisplayList.cpp | 48 | ||||
-rw-r--r-- | libs/hwui/DisplayList.h | 8 | ||||
-rw-r--r-- | libs/hwui/DisplayListOp.h | 6 | ||||
-rw-r--r-- | libs/hwui/DisplayListRenderer.cpp | 2 | ||||
-rw-r--r-- | libs/hwui/DisplayListRenderer.h | 4 | ||||
-rw-r--r-- | libs/hwui/Layer.cpp | 4 | ||||
-rw-r--r-- | libs/hwui/Layer.h | 6 | ||||
-rw-r--r-- | libs/hwui/OpenGLRenderer.cpp | 2 | ||||
-rw-r--r-- | libs/hwui/OpenGLRenderer.h | 4 | ||||
-rw-r--r-- | libs/hwui/Renderer.h | 4 | ||||
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.cpp | 4 | ||||
-rw-r--r-- | libs/hwui/renderthread/CanvasContext.h | 6 | ||||
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.cpp | 8 | ||||
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.h | 6 |
18 files changed, 65 insertions, 65 deletions
diff --git a/libs/hwui/Caches.cpp b/libs/hwui/Caches.cpp index 69d3328..2dfc873 100644 --- a/libs/hwui/Caches.cpp +++ b/libs/hwui/Caches.cpp @@ -315,7 +315,7 @@ void Caches::clearGarbage() { pathCache.clearGarbage(); patchCache.clearGarbage(); - Vector<DisplayList*> displayLists; + Vector<RenderNode*> displayLists; Vector<Layer*> layers; { // scope for the lock @@ -328,7 +328,7 @@ void Caches::clearGarbage() { size_t count = displayLists.size(); for (size_t i = 0; i < count; i++) { - DisplayList* displayList = displayLists.itemAt(i); + RenderNode* displayList = displayLists.itemAt(i); delete displayList; } @@ -345,7 +345,7 @@ void Caches::deleteLayerDeferred(Layer* layer) { mLayerGarbage.push(layer); } -void Caches::deleteDisplayListDeferred(DisplayList* displayList) { +void Caches::deleteDisplayListDeferred(RenderNode* displayList) { Mutex::Autolock _l(mGarbageLock); mDisplayListGarbage.push(displayList); } diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h index 6f3d8fb..50c5fef 100644 --- a/libs/hwui/Caches.h +++ b/libs/hwui/Caches.h @@ -102,7 +102,7 @@ struct CacheLogger { // Caches /////////////////////////////////////////////////////////////////////////////// -class DisplayList; +class RenderNode; class ANDROID_API Caches: public Singleton<Caches> { Caches(); @@ -169,7 +169,7 @@ public: /* * Can be used to delete a display list from a non EGL thread. */ - void deleteDisplayListDeferred(DisplayList* layer); + void deleteDisplayListDeferred(RenderNode* layer); /** * Binds the VBO used to render simple textured quads. @@ -420,7 +420,7 @@ private: mutable Mutex mGarbageLock; Vector<Layer*> mLayerGarbage; - Vector<DisplayList*> mDisplayListGarbage; + Vector<RenderNode*> mDisplayListGarbage; DebugLevel mDebugLevel; bool mInitialized; diff --git a/libs/hwui/DeferredLayerUpdater.cpp b/libs/hwui/DeferredLayerUpdater.cpp index 7a2e288..7a83967 100644 --- a/libs/hwui/DeferredLayerUpdater.cpp +++ b/libs/hwui/DeferredLayerUpdater.cpp @@ -54,7 +54,7 @@ void DeferredLayerUpdater::setPaint(const SkPaint* paint) { SkRefCnt_SafeAssign(mColorFilter, colorFilter); } -void DeferredLayerUpdater::setDisplayList(DisplayList* displayList, +void DeferredLayerUpdater::setDisplayList(RenderNode* displayList, int left, int top, int right, int bottom) { mDisplayList = displayList; if (mDirtyRect.isEmpty()) { diff --git a/libs/hwui/DeferredLayerUpdater.h b/libs/hwui/DeferredLayerUpdater.h index 65f225c..d124cde 100644 --- a/libs/hwui/DeferredLayerUpdater.h +++ b/libs/hwui/DeferredLayerUpdater.h @@ -72,7 +72,7 @@ public: mTransform = matrix ? new SkMatrix(*matrix) : 0; } - ANDROID_API void setDisplayList(DisplayList* displayList, + ANDROID_API void setDisplayList(RenderNode* displayList, int left, int top, int right, int bottom); ANDROID_API void setPaint(const SkPaint* paint); @@ -101,7 +101,7 @@ private: // Layer type specific properties // displayList and surfaceTexture are mutually exclusive, only 1 may be set // dirtyRect is only valid if displayList is set - DisplayList* mDisplayList; + RenderNode* mDisplayList; Rect mDirtyRect; sp<GLConsumer> mSurfaceTexture; SkMatrix* mTransform; diff --git a/libs/hwui/DisplayList.cpp b/libs/hwui/DisplayList.cpp index b954c1f..f038427 100644 --- a/libs/hwui/DisplayList.cpp +++ b/libs/hwui/DisplayList.cpp @@ -29,7 +29,7 @@ namespace android { namespace uirenderer { -void DisplayList::outputLogBuffer(int fd) { +void RenderNode::outputLogBuffer(int fd) { DisplayListLogBuffer& logBuffer = DisplayListLogBuffer::getInstance(); if (logBuffer.isEmpty()) { return; @@ -48,7 +48,7 @@ void DisplayList::outputLogBuffer(int fd) { fflush(file); } -DisplayList::DisplayList() : +RenderNode::RenderNode() : mDisplayListData(0), mDestroyed(false), mTransformMatrix(NULL), mTransformCamera(NULL), mTransformMatrix3D(NULL), mStaticMatrix(NULL), mAnimationMatrix(NULL) { @@ -87,7 +87,7 @@ DisplayList::DisplayList() : mCaching = false; } -DisplayList::~DisplayList() { +RenderNode::~RenderNode() { LOG_ALWAYS_FATAL_IF(mDestroyed, "Double destroyed DisplayList %p", this); mDestroyed = true; @@ -99,14 +99,14 @@ DisplayList::~DisplayList() { delete mAnimationMatrix; } -void DisplayList::destroyDisplayListDeferred(DisplayList* displayList) { +void RenderNode::destroyDisplayListDeferred(RenderNode* displayList) { if (displayList) { DISPLAY_LIST_LOGD("Deferring display list destruction"); Caches::getInstance().deleteDisplayListDeferred(displayList); } } -void DisplayList::setData(DisplayListData* data) { +void RenderNode::setData(DisplayListData* data) { delete mDisplayListData; mDisplayListData = data; if (mDisplayListData) { @@ -118,7 +118,7 @@ void DisplayList::setData(DisplayListData* data) { * This function is a simplified version of replay(), where we simply retrieve and log the * display list. This function should remain in sync with the replay() function. */ -void DisplayList::output(uint32_t level) { +void RenderNode::output(uint32_t level) { ALOGD("%*sStart display list (%p, %s, render=%d)", (level - 1) * 2, "", this, mName.string(), isRenderable()); ALOGD("%*s%s %d", level * 2, "", "Save", @@ -133,17 +133,17 @@ void DisplayList::output(uint32_t level) { ALOGD("%*sDone (%p, %s)", (level - 1) * 2, "", this, mName.string()); } -float DisplayList::getPivotX() { +float RenderNode::getPivotX() { updateMatrix(); return mPivotX; } -float DisplayList::getPivotY() { +float RenderNode::getPivotY() { updateMatrix(); return mPivotY; } -void DisplayList::updateMatrix() { +void RenderNode::updateMatrix() { if (mMatrixDirty) { // NOTE: mTransformMatrix won't be up to date if a DisplayList goes from a complex transform // to a pure translate. This is safe because the matrix isn't read in pure translate cases. @@ -195,7 +195,7 @@ void DisplayList::updateMatrix() { } } -void DisplayList::outputViewProperties(const int level) { +void RenderNode::outputViewProperties(const int level) { updateMatrix(); if (mLeft != 0 || mTop != 0) { ALOGD("%*sTranslate (left, top) %d, %d", level * 2, "", mLeft, mTop); @@ -249,7 +249,7 @@ void DisplayList::outputViewProperties(const int level) { #define PROPERTY_SAVECOUNT 0 template <class T> -void DisplayList::setViewProperties(OpenGLRenderer& renderer, T& handler, +void RenderNode::setViewProperties(OpenGLRenderer& renderer, T& handler, const int level) { #if DEBUG_DISPLAY_LIST outputViewProperties(level); @@ -308,7 +308,7 @@ void DisplayList::setViewProperties(OpenGLRenderer& renderer, T& handler, * If true3dTransform is set to true, the transform applied to the input matrix will use true 4x4 * matrix computation instead of the Skia 3x3 matrix + camera hackery. */ -void DisplayList::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform) { +void RenderNode::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform) { if (mLeft != 0 || mTop != 0) { matrix.translate(mLeft, mTop); } @@ -353,7 +353,7 @@ void DisplayList::applyViewPropertyTransforms(mat4& matrix, bool true3dTransform * Each DisplayList that serves as a 3d root builds its list of composited children, * which are flagged to not draw in the standard draw loop. */ -void DisplayList::computeOrdering() { +void RenderNode::computeOrdering() { ATRACE_CALL(); mProjectedNodes.clear(); @@ -367,7 +367,7 @@ void DisplayList::computeOrdering() { } } -void DisplayList::computeOrderingImpl( +void RenderNode::computeOrderingImpl( DrawDisplayListOp* opState, Vector<DrawDisplayListOp*>* compositedChildrenOfProjectionSurface, const mat4* transformFromProjectionSurface) { @@ -394,7 +394,7 @@ void DisplayList::computeOrderingImpl( bool haveAppliedPropertiesToProjection = false; for (unsigned int i = 0; i < mDisplayListData->children.size(); i++) { DrawDisplayListOp* childOp = mDisplayListData->children[i]; - DisplayList* child = childOp->mDisplayList; + RenderNode* child = childOp->mDisplayList; Vector<DrawDisplayListOp*>* projectionChildren = NULL; const mat4* projectionTransform = NULL; @@ -434,7 +434,7 @@ private: const int mLevel; }; -void DisplayList::defer(DeferStateStruct& deferStruct, const int level) { +void RenderNode::defer(DeferStateStruct& deferStruct, const int level) { DeferOperationHandler handler(deferStruct, level); iterate<DeferOperationHandler>(deferStruct.mRenderer, handler, level); } @@ -456,7 +456,7 @@ private: const int mLevel; }; -void DisplayList::replay(ReplayStateStruct& replayStruct, const int level) { +void RenderNode::replay(ReplayStateStruct& replayStruct, const int level) { ReplayOperationHandler handler(replayStruct, level); replayStruct.mRenderer.startMark(mName.string()); @@ -467,12 +467,12 @@ void DisplayList::replay(ReplayStateStruct& replayStruct, const int level) { replayStruct.mDrawGlStatus); } -void DisplayList::buildZSortedChildList(Vector<ZDrawDisplayListOpPair>& zTranslatedNodes) { +void RenderNode::buildZSortedChildList(Vector<ZDrawDisplayListOpPair>& zTranslatedNodes) { if (mDisplayListData == NULL || mDisplayListData->children.size() == 0) return; for (unsigned int i = 0; i < mDisplayListData->children.size(); i++) { DrawDisplayListOp* childOp = mDisplayListData->children[i]; - DisplayList* child = childOp->mDisplayList; + RenderNode* child = childOp->mDisplayList; float childZ = child->mTranslationZ; if (childZ != 0.0f) { @@ -491,7 +491,7 @@ void DisplayList::buildZSortedChildList(Vector<ZDrawDisplayListOpPair>& zTransla #define SHADOW_DELTA 0.1f template <class T> -void DisplayList::iterate3dChildren(const Vector<ZDrawDisplayListOpPair>& zTranslatedNodes, +void RenderNode::iterate3dChildren(const Vector<ZDrawDisplayListOpPair>& zTranslatedNodes, ChildrenSelectMode mode, OpenGLRenderer& renderer, T& handler) { const int size = zTranslatedNodes.size(); if (size == 0 @@ -529,7 +529,7 @@ void DisplayList::iterate3dChildren(const Vector<ZDrawDisplayListOpPair>& zTrans while (shadowIndex < endIndex || drawIndex < endIndex) { if (shadowIndex < endIndex) { DrawDisplayListOp* casterOp = zTranslatedNodes[shadowIndex].value; - DisplayList* caster = casterOp->mDisplayList; + RenderNode* caster = casterOp->mDisplayList; const float casterZ = zTranslatedNodes[shadowIndex].key; // attempt to render the shadow if the caster about to be drawn is its caster, // OR if its caster's Z value is similar to the previous potential caster @@ -560,7 +560,7 @@ void DisplayList::iterate3dChildren(const Vector<ZDrawDisplayListOpPair>& zTrans int restoreTo = renderer.save(SkCanvas::kMatrix_SaveFlag); DrawDisplayListOp* childOp = zTranslatedNodes[drawIndex].value; - DisplayList* child = childOp->mDisplayList; + RenderNode* child = childOp->mDisplayList; renderer.concatMatrix(childOp->mTransformFromParent); childOp->mSkipInOrderDraw = false; // this is horrible, I'm so sorry everyone @@ -574,7 +574,7 @@ void DisplayList::iterate3dChildren(const Vector<ZDrawDisplayListOpPair>& zTrans } template <class T> -void DisplayList::iterateProjectedChildren(OpenGLRenderer& renderer, T& handler, const int level) { +void RenderNode::iterateProjectedChildren(OpenGLRenderer& renderer, T& handler, const int level) { int rootRestoreTo = renderer.save(SkCanvas::kMatrix_SaveFlag | SkCanvas::kClip_SaveFlag); LinearAllocator& alloc = handler.allocator(); ClipRectOp* clipOp = new (alloc) ClipRectOp(0, 0, mWidth, mHeight, @@ -605,7 +605,7 @@ void DisplayList::iterateProjectedChildren(OpenGLRenderer& renderer, T& handler, * defer vs replay logic, per operation */ template <class T> -void DisplayList::iterate(OpenGLRenderer& renderer, T& handler, const int level) { +void RenderNode::iterate(OpenGLRenderer& renderer, T& handler, const int level) { if (CC_UNLIKELY(mDestroyed)) { // temporary debug logging ALOGW("Error: %s is drawing after destruction", getName()); CRASH(); diff --git a/libs/hwui/DisplayList.h b/libs/hwui/DisplayList.h index 189b544a..7d0e30e 100644 --- a/libs/hwui/DisplayList.h +++ b/libs/hwui/DisplayList.h @@ -160,17 +160,17 @@ private: * recorded stream of canvas operations is refreshed. The DisplayList (and its properties) stay * attached. */ -class DisplayList { +class RenderNode { public: - ANDROID_API DisplayList(); - ANDROID_API ~DisplayList(); + ANDROID_API RenderNode(); + ANDROID_API ~RenderNode(); // See flags defined in DisplayList.java enum ReplayFlag { kReplayFlag_ClipChildren = 0x1 }; - ANDROID_API static void destroyDisplayListDeferred(DisplayList* displayList); + ANDROID_API static void destroyDisplayListDeferred(RenderNode* displayList); ANDROID_API static void outputLogBuffer(int fd); ANDROID_API void setData(DisplayListData* newData); diff --git a/libs/hwui/DisplayListOp.h b/libs/hwui/DisplayListOp.h index 6ce8317..549b786 100644 --- a/libs/hwui/DisplayListOp.h +++ b/libs/hwui/DisplayListOp.h @@ -1488,9 +1488,9 @@ private: }; class DrawDisplayListOp : public DrawBoundedOp { - friend class DisplayList; // grant DisplayList access to info of child + friend class RenderNode; // grant DisplayList access to info of child public: - DrawDisplayListOp(DisplayList* displayList, int flags, const mat4& transformFromParent) + DrawDisplayListOp(RenderNode* displayList, int flags, const mat4& transformFromParent) : DrawBoundedOp(0, 0, displayList->getWidth(), displayList->getHeight(), 0), mDisplayList(displayList), mFlags(flags), mTransformFromParent(transformFromParent) {} @@ -1522,7 +1522,7 @@ public: virtual const char* name() { return "DrawDisplayList"; } private: - DisplayList* mDisplayList; + RenderNode* mDisplayList; const int mFlags; /////////////////////////// diff --git a/libs/hwui/DisplayListRenderer.cpp b/libs/hwui/DisplayListRenderer.cpp index 3b1d567..e69e08e 100644 --- a/libs/hwui/DisplayListRenderer.cpp +++ b/libs/hwui/DisplayListRenderer.cpp @@ -179,7 +179,7 @@ bool DisplayListRenderer::clipRegion(const SkRegion* region, SkRegion::Op op) { return StatefulBaseRenderer::clipRegion(region, op); } -status_t DisplayListRenderer::drawDisplayList(DisplayList* displayList, +status_t DisplayListRenderer::drawDisplayList(RenderNode* displayList, Rect& dirty, int32_t flags) { // dirty is an out parameter and should not be recorded, // it matters only when replaying the display list diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h index 1fb72ce..65498a5 100644 --- a/libs/hwui/DisplayListRenderer.h +++ b/libs/hwui/DisplayListRenderer.h @@ -156,7 +156,7 @@ public: // Canvas draw operations - special // ---------------------------------------------------------------------------- virtual status_t drawLayer(Layer* layer, float x, float y); - virtual status_t drawDisplayList(DisplayList* displayList, Rect& dirty, + virtual status_t drawDisplayList(RenderNode* displayList, Rect& dirty, int32_t replayFlags); // TODO: rename for consistency @@ -309,7 +309,7 @@ private: int mRestoreSaveCount; - friend class DisplayList; + friend class RenderNode; }; // class DisplayListRenderer diff --git a/libs/hwui/Layer.cpp b/libs/hwui/Layer.cpp index 8992a13..52176d4 100644 --- a/libs/hwui/Layer.cpp +++ b/libs/hwui/Layer.cpp @@ -194,7 +194,7 @@ void Layer::defer() { deferredList = new DeferredDisplayList(dirtyRect); DeferStateStruct deferredState(*deferredList, *renderer, - DisplayList::kReplayFlag_ClipChildren); + RenderNode::kReplayFlag_ClipChildren); renderer->initViewport(width, height); renderer->setupFrameState(dirtyRect.left, dirtyRect.top, @@ -238,7 +238,7 @@ void Layer::render() { renderer->prepareDirty(dirtyRect.left, dirtyRect.top, dirtyRect.right, dirtyRect.bottom, !isBlend()); - renderer->drawDisplayList(displayList, dirtyRect, DisplayList::kReplayFlag_ClipChildren); + renderer->drawDisplayList(displayList, dirtyRect, RenderNode::kReplayFlag_ClipChildren); renderer->finish(); renderer = NULL; diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index f6538f2..d8440ea 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -43,7 +43,7 @@ namespace uirenderer { // Forward declarations class Caches; class OpenGLRenderer; -class DisplayList; +class RenderNode; class DeferredDisplayList; class DeferStateStruct; @@ -84,7 +84,7 @@ public: regionRect.translate(layer.left, layer.top); } - void updateDeferred(OpenGLRenderer* renderer, DisplayList* displayList, + void updateDeferred(OpenGLRenderer* renderer, RenderNode* displayList, int left, int top, int right, int bottom) { this->renderer = renderer; this->displayList = displayList; @@ -294,7 +294,7 @@ public: */ bool deferredUpdateScheduled; OpenGLRenderer* renderer; - DisplayList* displayList; + RenderNode* displayList; Rect dirtyRect; bool debugDrawUpdate; bool hasDrawnSinceUpdate; diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp index 83de772..8aac0fe 100644 --- a/libs/hwui/OpenGLRenderer.cpp +++ b/libs/hwui/OpenGLRenderer.cpp @@ -1912,7 +1912,7 @@ void OpenGLRenderer::setupDrawIndexedVertices(GLvoid* vertices) { // Drawing /////////////////////////////////////////////////////////////////////////////// -status_t OpenGLRenderer::drawDisplayList(DisplayList* displayList, Rect& dirty, +status_t OpenGLRenderer::drawDisplayList(RenderNode* displayList, Rect& dirty, int32_t replayFlags) { status_t status; // All the usual checks and setup operations (quickReject, setupDraw, etc.) diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 76dd014..94abfa7 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -54,7 +54,7 @@ namespace android { namespace uirenderer { class DeferredDisplayState; -class DisplayList; +class RenderNode; class TextSetupFunctor; class VertexBuffer; class SkiaShader; @@ -165,7 +165,7 @@ public: int saveLayerDeferred(float left, float top, float right, float bottom, const SkPaint* paint, int flags); - virtual status_t drawDisplayList(DisplayList* displayList, Rect& dirty, int32_t replayFlags = 1); + virtual status_t drawDisplayList(RenderNode* displayList, Rect& dirty, int32_t replayFlags = 1); virtual status_t drawLayer(Layer* layer, float x, float y); virtual status_t drawBitmap(const SkBitmap* bitmap, float left, float top, const SkPaint* paint); diff --git a/libs/hwui/Renderer.h b/libs/hwui/Renderer.h index 4754bad..efcea5f 100644 --- a/libs/hwui/Renderer.h +++ b/libs/hwui/Renderer.h @@ -31,7 +31,7 @@ struct Res_png_9patch; namespace uirenderer { -class DisplayList; +class RenderNode; class Layer; class Matrix4; class SkiaColorFilter; @@ -232,7 +232,7 @@ public: // Canvas draw operations - special // ---------------------------------------------------------------------------- virtual status_t drawLayer(Layer* layer, float x, float y) = 0; - virtual status_t drawDisplayList(DisplayList* displayList, Rect& dirty, + virtual status_t drawDisplayList(RenderNode* displayList, Rect& dirty, int32_t replayFlags) = 0; // TODO: rename for consistency diff --git a/libs/hwui/renderthread/CanvasContext.cpp b/libs/hwui/renderthread/CanvasContext.cpp index ce66d8f..5ed9f1d 100644 --- a/libs/hwui/renderthread/CanvasContext.cpp +++ b/libs/hwui/renderthread/CanvasContext.cpp @@ -373,7 +373,7 @@ void CanvasContext::setup(int width, int height) { mCanvas->setViewport(width, height); } -void CanvasContext::setDisplayListData(DisplayList* displayList, DisplayListData* newData) { +void CanvasContext::setDisplayListData(RenderNode* displayList, DisplayListData* newData) { displayList->setData(newData); } @@ -388,7 +388,7 @@ void CanvasContext::processLayerUpdates(const Vector<DeferredLayerUpdater*>* lay } } -void CanvasContext::drawDisplayList(DisplayList* displayList, Rect* dirty) { +void CanvasContext::drawDisplayList(RenderNode* displayList, Rect* dirty) { LOG_ALWAYS_FATAL_IF(!mCanvas || mEglSurface == EGL_NO_SURFACE, "drawDisplayList called on a context with no canvas or surface!"); diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h index 649ffb6..e3fdf97 100644 --- a/libs/hwui/renderthread/CanvasContext.h +++ b/libs/hwui/renderthread/CanvasContext.h @@ -31,7 +31,7 @@ namespace android { namespace uirenderer { class DeferredLayerUpdater; -class DisplayList; +class RenderNode; class DisplayListData; class OpenGLRenderer; class Rect; @@ -63,9 +63,9 @@ public: bool initialize(EGLNativeWindowType window); void updateSurface(EGLNativeWindowType window); void setup(int width, int height); - void setDisplayListData(DisplayList* displayList, DisplayListData* newData); + void setDisplayListData(RenderNode* displayList, DisplayListData* newData); void processLayerUpdates(const Vector<DeferredLayerUpdater*>* layerUpdaters); - void drawDisplayList(DisplayList* displayList, Rect* dirty); + void drawDisplayList(RenderNode* displayList, Rect* dirty); void destroyCanvas(); bool copyLayerInto(DeferredLayerUpdater* layer, SkBitmap* bitmap); diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp index 200c21f..93360fc 100644 --- a/libs/hwui/renderthread/RenderProxy.cpp +++ b/libs/hwui/renderthread/RenderProxy.cpp @@ -117,13 +117,13 @@ void RenderProxy::setup(int width, int height) { post(task); } -CREATE_BRIDGE3(setDisplayListData, CanvasContext* context, DisplayList* displayList, +CREATE_BRIDGE3(setDisplayListData, CanvasContext* context, RenderNode* displayList, DisplayListData* newData) { args->context->setDisplayListData(args->displayList, args->newData); return NULL; } -void RenderProxy::setDisplayListData(DisplayList* displayList, DisplayListData* newData) { +void RenderProxy::setDisplayListData(RenderNode* displayList, DisplayListData* newData) { SETUP_TASK(setDisplayListData); args->context = mContext; args->displayList = displayList; @@ -131,7 +131,7 @@ void RenderProxy::setDisplayListData(DisplayList* displayList, DisplayListData* post(task); } -CREATE_BRIDGE4(drawDisplayList, CanvasContext* context, DisplayList* displayList, +CREATE_BRIDGE4(drawDisplayList, CanvasContext* context, RenderNode* displayList, Rect dirty, const Vector<DeferredLayerUpdater*>* layerUpdates) { Rect* dirty = &args->dirty; if (dirty->bottom == -1 && dirty->left == -1 && @@ -143,7 +143,7 @@ CREATE_BRIDGE4(drawDisplayList, CanvasContext* context, DisplayList* displayList return NULL; } -void RenderProxy::drawDisplayList(DisplayList* displayList, +void RenderProxy::drawDisplayList(RenderNode* displayList, int dirtyLeft, int dirtyTop, int dirtyRight, int dirtyBottom) { SETUP_TASK(drawDisplayList); args->context = mContext; diff --git a/libs/hwui/renderthread/RenderProxy.h b/libs/hwui/renderthread/RenderProxy.h index 83a8a8f..73e9805 100644 --- a/libs/hwui/renderthread/RenderProxy.h +++ b/libs/hwui/renderthread/RenderProxy.h @@ -32,7 +32,7 @@ namespace android { namespace uirenderer { class DeferredLayerUpdater; -class DisplayList; +class RenderNode; class DisplayListData; class Layer; class Rect; @@ -60,8 +60,8 @@ public: ANDROID_API bool initialize(EGLNativeWindowType window); ANDROID_API void updateSurface(EGLNativeWindowType window); ANDROID_API void setup(int width, int height); - ANDROID_API void setDisplayListData(DisplayList* displayList, DisplayListData* newData); - ANDROID_API void drawDisplayList(DisplayList* displayList, + ANDROID_API void setDisplayListData(RenderNode* displayList, DisplayListData* newData); + ANDROID_API void drawDisplayList(RenderNode* displayList, int dirtyLeft, int dirtyTop, int dirtyRight, int dirtyBottom); ANDROID_API void destroyCanvas(); |