diff options
author | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-20 19:55:11 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-20 19:55:11 +0000 |
commit | 6064d66be178fe19cfb44118b4a51dc2791ecb44 (patch) | |
tree | d85d39c70b49e5247f20ba5aac6e32a217f58d7d /skia | |
parent | 392033cf96ed45947d39e28cd859bef1387dc99b (diff) | |
download | chromium_src-6064d66be178fe19cfb44118b4a51dc2791ecb44.zip chromium_src-6064d66be178fe19cfb44118b4a51dc2791ecb44.tar.gz chromium_src-6064d66be178fe19cfb44118b4a51dc2791ecb44.tar.bz2 |
use getTopLayer(now with updatematrixclip) instead of (should be private) LayerIter
Review URL: https://chromiumcodereview.appspot.com/9753008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127753 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/platform_canvas.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc index f4510744..973dfd8 100644 --- a/skia/ext/platform_canvas.cc +++ b/skia/ext/platform_canvas.cc @@ -44,8 +44,7 @@ SkCanvas* TryCreateBitmapCanvas(int width, int height, bool is_opaque) { } SkDevice* GetTopDevice(const SkCanvas& canvas) { - SkCanvas::LayerIter iter(const_cast<SkCanvas*>(&canvas), false); - return iter.device(); + return canvas.getTopDevice(true); } bool SupportsPlatformPaint(const SkCanvas* canvas) { |