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

Unified Diff: ui/gfx/surface/transport_dib_mac.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_mac.cc
===================================================================
--- ui/gfx/surface/transport_dib_mac.cc (revision 123041)
+++ ui/gfx/surface/transport_dib_mac.cc (working copy)
@@ -64,7 +64,11 @@
if (!memory() && !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,
+ reinterpret_cast<uint8_t*>(memory())))
return NULL;
return canvas.release();
}

Powered by Google App Engine
This is Rietveld 408576698