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

Unified Diff: content/browser/renderer_host/backing_store_gtk.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: content/browser/renderer_host/backing_store_gtk.cc
===================================================================
--- content/browser/renderer_host/backing_store_gtk.cc (revision 123041)
+++ content/browser/renderer_host/backing_store_gtk.cc (working copy)
@@ -547,7 +547,7 @@
// TODO(jhawkins): Need to convert the image data if the image bits per pixel
// is not 32.
// Note that this also initializes the output bitmap as opaque.
- if (!output->initialize(width, height, true) ||
+ if (!output->initialize(width, height, skia::PlatformDevice::FLAGS_OPAQUE) ||
image->bits_per_pixel != 32) {
if (shared_memory_support_ != ui::SHARED_MEMORY_NONE)
DestroySharedImage(display_, image, &shminfo);

Powered by Google App Engine
This is Rietveld 408576698