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

Unified Diff: skia/ext/platform_device.h

Issue 1963713002: Replace setMatrixClip() with BeginPlatformPaint() logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compensate for any outstanding saveLayer() calls Created 4 years, 7 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 | « skia/ext/platform_canvas.cc ('k') | skia/ext/platform_device_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device.h
diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h
index f71f73bf519d52d3eb59243dc3b40c5034be11c2..8e23de5a23f762b3655e98a45a7393f3024f1b13 100644
--- a/skia/ext/platform_device.h
+++ b/skia/ext/platform_device.h
@@ -18,7 +18,6 @@
class SkMatrix;
class SkPath;
-class SkRegion;
namespace skia {
@@ -59,7 +58,8 @@ class SK_API PlatformDevice {
// The CGContext that corresponds to the bitmap, used for CoreGraphics
// operations drawing into the bitmap. This is possibly heavyweight, so it
// should exist only during one pass of rendering.
- virtual CGContextRef GetBitmapContext() = 0;
+ virtual CGContextRef GetBitmapContext(const SkMatrix& transform,
+ const SkIRect& clip_bounds) = 0;
#endif
#if defined(OS_WIN)
@@ -68,14 +68,16 @@ class SK_API PlatformDevice {
// be more efficient if you don't free it until after this call so it doesn't
// have to be created twice. If src_rect is null, then the entirety of the
// source device will be copied.
- virtual void DrawToHDC(HDC, int x, int y, const RECT* src_rect);
+ virtual void DrawToHDC(HDC source_dc, HDC destination_dc, int x, int y,
+ const RECT* src_rect, const SkMatrix& transform);
#endif
private:
// The DC that corresponds to the bitmap, used for GDI operations drawing
// into the bitmap. This is possibly heavyweight, so it should be existant
// only during one pass of rendering.
- virtual PlatformSurface BeginPlatformPaint();
+ virtual PlatformSurface BeginPlatformPaint(const SkMatrix& transform,
+ const SkIRect& clip_bounds);
friend class ScopedPlatformPaint;
};
« no previous file with comments | « skia/ext/platform_canvas.cc ('k') | skia/ext/platform_device_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698