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

Unified Diff: src/views/SkWindow.cpp

Issue 1164403002: Visual bench on native android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tiny cleanup Created 5 years, 6 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 | « platform_tools/android/visualbench/src/com/skia/VisualBenchActivity.java ('k') | tools/VisualBench.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/SkWindow.cpp
diff --git a/src/views/SkWindow.cpp b/src/views/SkWindow.cpp
index f222715fcfe32feb26aa68d2589c2e0a292e5aca..7ab729e1d28877b97b61baf13c0ad11435d8f9ae 100644
--- a/src/views/SkWindow.cpp
+++ b/src/views/SkWindow.cpp
@@ -117,9 +117,9 @@ extern bool gEnableControlledThrow;
bool SkWindow::update(SkIRect* updateArea) {
if (!fDirtyRgn.isEmpty()) {
+#if defined(SK_BUILD_FOR_WINCE) && defined(USE_GX_SCREEN)
SkBitmap bm = this->getBitmap();
-#if defined(SK_BUILD_FOR_WINCE) && defined(USE_GX_SCREEN)
char* buffer = (char*)GXBeginDraw();
SkASSERT(buffer);
@@ -134,8 +134,9 @@ bool SkWindow::update(SkIRect* updateArea) {
SkCanvas* canvas = surface->getCanvas();
canvas->clipRegion(fDirtyRgn);
- if (updateArea)
+ if (updateArea) {
*updateArea = fDirtyRgn.getBounds();
+ }
SkAutoCanvasRestore acr(canvas, true);
canvas->concat(fMatrix);
« no previous file with comments | « platform_tools/android/visualbench/src/com/skia/VisualBenchActivity.java ('k') | tools/VisualBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698