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

Unified Diff: webkit/tools/test_shell/webwidget_host_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: webkit/tools/test_shell/webwidget_host_gtk.cc
===================================================================
--- webkit/tools/test_shell/webwidget_host_gtk.cc (revision 123041)
+++ webkit/tools/test_shell/webwidget_host_gtk.cc (working copy)
@@ -357,7 +357,9 @@
if (!canvas_.get()) {
ResetScrollRect();
paint_rect_ = client_rect;
- canvas_.reset(new skia::PlatformCanvas(width, height, true));
+ canvas_.reset(new skia::PlatformCanvas(width, height,
+ skia::PlatformDevice::FLAGS_OPAQUE |
+ skia::PlatformDevice::FLAGS_INITIALIZED));
if (!canvas_.get()) {
// memory allocation failed, we can't paint.
LOG(ERROR) << "Failed to allocate memory for " << width << "x" << height;

Powered by Google App Engine
This is Rietveld 408576698