summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 18:34:08 +0000
committerreed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-12 18:34:08 +0000
commitd1a3af4fb787219281083e9f0433b621a2b55791 (patch)
tree7a2c876187c4ff7e9704237b6415255e17ae5181 /skia
parentdb610b5b58ed76de0f5ed2797b36b16601354466 (diff)
downloadchromium_src-d1a3af4fb787219281083e9f0433b621a2b55791.zip
chromium_src-d1a3af4fb787219281083e9f0433b621a2b55791.tar.gz
chromium_src-d1a3af4fb787219281083e9f0433b621a2b55791.tar.bz2
remove call to getTotalClip, which is being deprecated. Use save/restore pattern
to affec the same logic. Review URL: https://chromiumcodereview.appspot.com/10008080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132021 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/vector_canvas_unittest.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/skia/ext/vector_canvas_unittest.cc b/skia/ext/vector_canvas_unittest.cc
index 23661fe..ec512cc 100644
--- a/skia/ext/vector_canvas_unittest.cc
+++ b/skia/ext/vector_canvas_unittest.cc
@@ -888,7 +888,8 @@ TEST_F(VectorCanvasTest, ClippingClean) {
LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
true);
{
- SkRegion old_region(pcanvas_->getTotalClip());
+ SkAutoCanvasRestore acrv(vcanvas_, true);
+ SkAutoCanvasRestore acrp(pcanvas_, true);
SkRect rect;
rect.fLeft = 2;
rect.fTop = 2;
@@ -900,8 +901,6 @@ TEST_F(VectorCanvasTest, ClippingClean) {
vcanvas_->drawBitmap(bitmap, 15, 3, NULL);
pcanvas_->drawBitmap(bitmap, 15, 3, NULL);
EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("clipped")));
- vcanvas_->clipRegion(old_region, SkRegion::kReplace_Op);
- pcanvas_->clipRegion(old_region, SkRegion::kReplace_Op);
}
{
// Verify that the clipping region has been fixed back.