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

Unified Diff: skia/ext/vector_platform_device_emf_win.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: skia/ext/vector_platform_device_emf_win.cc
===================================================================
--- skia/ext/vector_platform_device_emf_win.cc (revision 123041)
+++ skia/ext/vector_platform_device_emf_win.cc (working copy)
@@ -16,8 +16,8 @@
// static
SkDevice* VectorPlatformDeviceEmf::CreateDevice(
- int width, int height, bool is_opaque, HANDLE shared_section) {
- if (!is_opaque) {
+ int width, int height, int flags, HANDLE shared_section) {
+ if (!flags & FLAGS_OPAQUE) {
// TODO(maruel): http://crbug.com/18382 When restoring a semi-transparent
// layer, i.e. merging it, we need to rasterize it because GDI doesn't
// support transparency except for AlphaBlend(). Right now, a
@@ -26,8 +26,7 @@
// EMF-based VectorDevice and have this device registers the drawing. When
// playing back the device into a bitmap, do it at the printer's dpi instead
// of the layout's dpi (which is much lower).
- return BitmapPlatformDevice::create(width, height, is_opaque,
- shared_section);
+ return BitmapPlatformDevice::create(width, height, flags, shared_section);
}
// TODO(maruel): http://crbug.com/18383 Look if it would be worth to

Powered by Google App Engine
This is Rietveld 408576698