diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 22:02:11 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-30 22:02:11 +0000 |
commit | b9527d57c08210ca3273633048445722b3244357 (patch) | |
tree | 155a1add971e8d8fbc24b866d0a3bdc318f5f468 /gfx/canvas.h | |
parent | 937105b42b6f50d9a29aa7180b939324da80911e (diff) | |
download | chromium_src-b9527d57c08210ca3273633048445722b3244357.zip chromium_src-b9527d57c08210ca3273633048445722b3244357.tar.gz chromium_src-b9527d57c08210ca3273633048445722b3244357.tar.bz2 |
Canvas refactoring phase 4b:
Add BeginPlatformPaint/EndPlatformPaint calls to gfx::Canvas. BeginPlatformPaint() returns a gfx::NativeDrawingContext.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2840029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51297 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/canvas.h')
-rw-r--r-- | gfx/canvas.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gfx/canvas.h b/gfx/canvas.h index 90495cd..430a88f 100644 --- a/gfx/canvas.h +++ b/gfx/canvas.h @@ -184,6 +184,14 @@ class Canvas { virtual void TileImageInt(const SkBitmap& bitmap, int src_x, int src_y, int dest_x, int dest_y, int w, int h) = 0; + // Returns a native drawing context for platform specific drawing routines to + // use. Must be balanced by a call to EndPlatformPaint(). + virtual gfx::NativeDrawingContext BeginPlatformPaint() = 0; + + // Signifies the end of platform drawing using the native drawing context + // returned by BeginPlatformPaint(). + virtual void EndPlatformPaint() = 0; + // TODO(beng): remove this once we don't need to use any skia-specific methods // through this interface. // A quick and dirty way to obtain the underlying SkCanvas. |