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

Unified Diff: ui/gfx/surface/transport_dib_linux.cc

Issue 9416017: Optionally clear PlatformCanvas instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Address style issues. Created 8 years, 10 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
Index: ui/gfx/surface/transport_dib_linux.cc
===================================================================
--- ui/gfx/surface/transport_dib_linux.cc (revision 123041)
+++ ui/gfx/surface/transport_dib_linux.cc (working copy)
@@ -94,7 +94,11 @@
if (address_ == kInvalidAddress && !Map())
return NULL;
scoped_ptr<skia::PlatformCanvas> canvas(new skia::PlatformCanvas);
- if (!canvas->initialize(w, h, true, reinterpret_cast<uint8_t*>(memory())))
+ if (!canvas->initialize(
+ w, h,
+ skia::PlatformDevice::FLAGS_OPAQUE |
+ skia::PlatformDevice::FLAGS_INITIALIZED,
Jeff Timanus 2012/02/23 22:14:10 The canvas can be explicitly cleared in the variou
+ reinterpret_cast<uint8_t*>(memory())))
return NULL;
return canvas.release();
}

Powered by Google App Engine
This is Rietveld 408576698