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

Unified Diff: skia/ext/bitmap_platform_device_mac_unittest.cc

Issue 6588012: roll skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_mac_unittest.cc
===================================================================
--- skia/ext/bitmap_platform_device_mac_unittest.cc (revision 76211)
+++ skia/ext/bitmap_platform_device_mac_unittest.cc (working copy)
@@ -9,6 +9,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkMatrix.h"
#include "third_party/skia/include/core/SkRegion.h"
+#include "third_party/skia/include/core/SkClipStack.h"
namespace skia {
@@ -29,11 +30,12 @@
SkMatrix transform;
transform.setTranslate(50, 140);
+ SkClipStack ignore;
SkRegion clip_region;
SkIRect rect;
rect.set(0, 0, kWidth, kHeight);
clip_region.setRect(rect);
- bitmap_->setMatrixClip(transform, clip_region);
+ bitmap_->setMatrixClip(transform, clip_region, ignore);
CGContextRef context = bitmap_->GetBitmapContext();
SkRect clip_rect = gfx::CGRectToSkRect(CGContextGetClipBoundingBox(context));
@@ -48,11 +50,12 @@
SkMatrix transform;
transform.setScale(0.5, 0.5);
+ SkClipStack unused;
SkRegion clip_region;
SkIRect rect;
rect.set(0, 0, kWidth, kHeight);
clip_region.setRect(rect);
- bitmap_->setMatrixClip(transform, clip_region);
+ bitmap_->setMatrixClip(transform, clip_region, unused);
CGContextRef context = bitmap_->GetBitmapContext();
SkRect clip_rect = gfx::CGRectToSkRect(CGContextGetClipBoundingBox(context));
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698