Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: src/utils/android/SkHwuiRenderer.cpp

Issue 1086083004: Support HWUI rename of DisplayListRenderer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/android/SkHwuiRenderer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/android/SkHwuiRenderer.cpp
diff --git a/src/utils/android/SkHwuiRenderer.cpp b/src/utils/android/SkHwuiRenderer.cpp
index aac9180df0f92a156459157d5ecf55bd1e86c009..17a830e976a25961fe091238c0384b2727f5316b 100644
--- a/src/utils/android/SkHwuiRenderer.cpp
+++ b/src/utils/android/SkHwuiRenderer.cpp
@@ -56,20 +56,20 @@ void SkHwuiRenderer::initialize(SkISize size) {
android::uirenderer::Vector3 lightVector { lightX, -200.0f, 800.0f };
this->proxy->setup(size.width(), size.height(), lightVector, 800.0f,
255 * 0.075f, 255 * 0.15f);
- this->renderer.reset(new android::uirenderer::DisplayListRenderer());
- this->renderer->setViewport(size.width(), size.height());
+ this->canvas.reset(new android::uirenderer::DisplayListCanvas());
+ this->canvas->setViewport(size.width(), size.height());
}
SkCanvas* SkHwuiRenderer::prepareToDraw() {
- this->renderer->prepare();
- this->renderer->clipRect(0, 0, this->size.width(), this->size.height(),
- SkRegion::Op::kReplace_Op);
- return this->renderer->asSkCanvas();
+ this->canvas->prepare();
+ this->canvas->clipRect(0, 0, this->size.width(), this->size.height(),
+ SkRegion::Op::kReplace_Op);
+ return this->canvas->asSkCanvas();
}
void SkHwuiRenderer::finishDrawing() {
- this->renderer->finish();
- this->rootNode->setStagingDisplayList(this->renderer->finishRecording());
+ this->canvas->finish();
+ this->rootNode->setStagingDisplayList(this->canvas->finishRecording());
this->proxy->syncAndDrawFrame();
// Surprisingly, calling this->proxy->fence() here appears to make no difference to
// the timings we record.
« no previous file with comments | « src/utils/android/SkHwuiRenderer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698