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

Unified Diff: skia/ext/bitmap_platform_device_cairo.h

Issue 1839113002: Limit manual control of platform painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Privatize Created 4 years, 9 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
« no previous file with comments | « content/browser/compositor/software_output_device_win.cc ('k') | skia/ext/bitmap_platform_device_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_cairo.h
diff --git a/skia/ext/bitmap_platform_device_cairo.h b/skia/ext/bitmap_platform_device_cairo.h
index 6a81c725e827641659d2e6ca137e9d38ca9afc51..6bc1da1dba73806cd6c6d1cfed39ba956d88b347 100644
--- a/skia/ext/bitmap_platform_device_cairo.h
+++ b/skia/ext/bitmap_platform_device_cairo.h
@@ -46,6 +46,8 @@ typedef struct _cairo_surface cairo_surface_t;
namespace skia {
+class ScopedPlatformPaint;
+
// -----------------------------------------------------------------------------
// This is the Linux bitmap backing for Skia. We create a Cairo image surface
// to store the backing buffer. This buffer is BGRA in memory (on little-endian
@@ -84,13 +86,13 @@ class BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice {
const SkRegion& region,
const SkClipStack&) override;
- // Overridden from PlatformDevice:
- cairo_t* BeginPlatformPaint() override;
-
protected:
SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
private:
+ // Overridden from PlatformDevice:
+ cairo_t* BeginPlatformPaint() override;
+
static BitmapPlatformDevice* Create(int width, int height, bool is_opaque,
cairo_surface_t* surface);
@@ -119,6 +121,7 @@ class BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice {
SkRegion clip_region_;
DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
+ friend class ScopedPlatformPaint;
};
} // namespace skia
« no previous file with comments | « content/browser/compositor/software_output_device_win.cc ('k') | skia/ext/bitmap_platform_device_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698