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

Unified Diff: skia/ext/platform_canvas_linux.cc

Issue 39105: Windowless plugins: basic drawing works. (Closed)
Patch Set: retry Created 11 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
diff --git a/skia/ext/platform_canvas_linux.cc b/skia/ext/platform_canvas_linux.cc
index 422693ca958496d134051231576733590137b030..e8417cd2830d88953a3211c233a50fb6d140bfeb 100644
--- a/skia/ext/platform_canvas_linux.cc
+++ b/skia/ext/platform_canvas_linux.cc
@@ -73,6 +73,10 @@ SkDevice* PlatformCanvasLinux::createPlatformDevice(int width,
return BitmapPlatformDeviceLinux::Create(width, height, is_opaque);
}
+PlatformDeviceLinux::XDrawable PlatformCanvasLinux::getXDrawable() {
+ return getTopPlatformDevice().GetXDrawable();
+}
+
// static
size_t PlatformCanvasLinux::StrideForWidth(unsigned width) {
return cairo_format_stride_for_width(CAIRO_FORMAT_ARGB32, width);

Powered by Google App Engine
This is Rietveld 408576698