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

Unified Diff: skia/ext/platform_canvas_linux.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/platform_canvas_linux.cc
===================================================================
--- skia/ext/platform_canvas_linux.cc (revision 123041)
+++ skia/ext/platform_canvas_linux.cc (working copy)
@@ -11,28 +11,28 @@
namespace skia {
-PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque) {
+PlatformCanvas::PlatformCanvas(int width, int height, int flags) {
TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas",
"width", width, "height", height);
- if (!initialize(width, height, is_opaque))
+ if (!initialize(width, height, flags))
SK_CRASH();
}
-PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque,
+PlatformCanvas::PlatformCanvas(int width, int height, int flags,
uint8_t* data) {
TRACE_EVENT2("skia", "PlatformCanvas::PlatformCanvas",
"width", width, "height", height);
- if (!initialize(width, height, is_opaque, data))
+ if (!initialize(width, height, flags, data))
SK_CRASH();
}
PlatformCanvas::~PlatformCanvas() {
}
-bool PlatformCanvas::initialize(int width, int height, bool is_opaque,
+bool PlatformCanvas::initialize(int width, int height, int flags,
uint8_t* data) {
return initializeWithDevice(BitmapPlatformDevice::Create(
- width, height, is_opaque, data));
+ width, height, flags, data));
}
} // namespace skia

Powered by Google App Engine
This is Rietveld 408576698