diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 23:07:21 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 23:07:21 +0000 |
commit | 80cdb9fef61dc06c379027ad37fe40f45e061792 (patch) | |
tree | f11f6db1acae8645b94c279aef9d92e4832d9cd2 /gfx/canvas.h | |
parent | faa7929a4a690be40fb28598725085fdec8dbc96 (diff) | |
download | chromium_src-80cdb9fef61dc06c379027ad37fe40f45e061792.zip chromium_src-80cdb9fef61dc06c379027ad37fe40f45e061792.tar.gz chromium_src-80cdb9fef61dc06c379027ad37fe40f45e061792.tar.bz2 |
Implement more rendering methods on Canvas.
Translation in TileImageInt is still wonky.
BUG=none
TEST=see unittests
Review URL: http://codereview.chromium.org/3014043
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gfx/canvas.h')
-rw-r--r-- | gfx/canvas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/canvas.h b/gfx/canvas.h index 6b59c6d..de06e73 100644 --- a/gfx/canvas.h +++ b/gfx/canvas.h @@ -210,6 +210,7 @@ class Canvas { // |tile_mode| specifies how the gradient brush repeats outside its natural // bounds. // Returns an encapsulated platform brush object which the caller must delete. + // Returns NULL if the system is unable to create the brush for some reason. virtual Brush* CreateLinearGradientBrush( const gfx::Point& start_point, const gfx::Point& end_point, @@ -228,6 +229,7 @@ class Canvas { // |tile_mode| specifies how the gradient brush repeats outside its natural // bounds. // Returns an encapsulated platform brush object which the caller must delete. + // Returns NULL if the system is unable to create the brush for some reason. virtual Brush* CreateRadialGradientBrush( const gfx::Point& center_point, float radius, @@ -241,6 +243,7 @@ class Canvas { // |tile_mode_x,y| - specifies how the brush tiles the areas beyond those // filled by its bitmap along each axis. // Returns an encapsulated platform brush object which the caller must delete. + // Returns NULL if the system is unable to create the brush for some reason. virtual Brush* CreateBitmapBrush( const SkBitmap& bitmap, TileMode tile_mode_x, |