diff options
| author | Chris Craik <ccraik@google.com> | 2013-12-13 21:55:49 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-12-13 21:55:50 +0000 |
| commit | 18809c063b89d9b235401d080b952885a4ef9628 (patch) | |
| tree | 7a73454d7d3007b5d08032bfff6515b435947fb2 /libs/hwui/DisplayListRenderer.cpp | |
| parent | f8bc964289df5ea53672df401c6d51dd47c02e53 (diff) | |
| parent | f57776b2d195f0937906eb88b777bb55ccc36967 (diff) | |
| download | frameworks_base-18809c063b89d9b235401d080b952885a4ef9628.zip frameworks_base-18809c063b89d9b235401d080b952885a4ef9628.tar.gz frameworks_base-18809c063b89d9b235401d080b952885a4ef9628.tar.bz2 | |
Merge "3d view system!"
Diffstat (limited to 'libs/hwui/DisplayListRenderer.cpp')
| -rw-r--r-- | libs/hwui/DisplayListRenderer.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/hwui/DisplayListRenderer.cpp b/libs/hwui/DisplayListRenderer.cpp index d024923..19a027d 100644 --- a/libs/hwui/DisplayListRenderer.cpp +++ b/libs/hwui/DisplayListRenderer.cpp @@ -111,6 +111,7 @@ DisplayList* DisplayListRenderer::getDisplayList(DisplayList* displayList) { } else { displayList->initFromDisplayListRenderer(*this, true); } + // TODO: should just avoid setting the DisplayList's DisplayListData displayList->setRenderable(mHasDrawOps); return displayList; } @@ -120,7 +121,8 @@ bool DisplayListRenderer::isDeferred() { } void DisplayListRenderer::setViewport(int width, int height) { - mOrthoMatrix.loadOrtho(0, width, height, 0, -1, 1); + // TODO: DisplayListRenderer shouldn't have a projection matrix, as it should never be used + mViewProjMatrix.loadOrtho(0, width, height, 0, -1, 1); mWidth = width; mHeight = height; @@ -248,7 +250,10 @@ status_t DisplayListRenderer::drawDisplayList(DisplayList* displayList, // resources cache, but we rely on the caller (UI toolkit) to // do the right thing for now - addDrawOp(new (alloc()) DrawDisplayListOp(displayList, flags)); + DrawDisplayListOp* op = new (alloc()) DrawDisplayListOp(displayList, flags, currentTransform()); + addDrawOp(op); + mDisplayListData->children.push(op); + return DrawGlInfo::kStatusDone; } |
