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

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: 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
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..1306f0a4b99901704a5c0715be17c76506d129ac 100644
--- a/skia/ext/bitmap_platform_device_cairo.h
+++ b/skia/ext/bitmap_platform_device_cairo.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "skia/ext/platform_canvas.h"
f(malita) 2016/03/29 17:31:07 Nit: forward-declare ScopedPlatformPaint instead o
tomhudson 2016/03/29 17:47:31 Ugh, I had problems with that when I was declaring
#include "skia/ext/platform_device.h"
typedef struct _cairo_surface cairo_surface_t;
@@ -84,10 +85,10 @@ class BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice {
const SkRegion& region,
const SkClipStack&) override;
+ protected:
// Overridden from PlatformDevice:
cairo_t* BeginPlatformPaint() override;
f(malita) 2016/03/29 17:31:07 Nit: if this is only called from ScopedPlatformPai
tomhudson 2016/03/29 17:47:31 Done.
- protected:
SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
private:
@@ -119,6 +120,7 @@ class BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice {
SkRegion clip_region_;
DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
+ friend class skia::ScopedPlatformPaint;
f(malita) 2016/03/29 17:31:07 Nit: we're in the 'skia' namespace, I don't think
tomhudson 2016/03/29 17:47:31 Done.
};
} // namespace skia

Powered by Google App Engine
This is Rietveld 408576698