Chromium Code Reviews| 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(); |
| } |