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

Unified Diff: tests/PictureTest.cpp

Issue 137833016: add SkCanvas constructor that explicitly creates no_config with dimensions (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 11 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 | « src/utils/debugger/SkDebugCanvas.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PictureTest.cpp
diff --git a/tests/PictureTest.cpp b/tests/PictureTest.cpp
index 5aaf73bdfb46e84a05f91eea0f45ed061bc41809..7665b13d7e42c30be4f1b010d7e61b602996f916 100644
--- a/tests/PictureTest.cpp
+++ b/tests/PictureTest.cpp
@@ -922,8 +922,8 @@ static void test_clip_bound_opt(skiatest::Reporter* reporter) {
*/
class ClipCountingCanvas : public SkCanvas {
public:
- explicit ClipCountingCanvas(SkBaseDevice* device)
- : SkCanvas(device)
+ explicit ClipCountingCanvas(int width, int height)
+ : INHERITED(width, height)
, fClipCount(0){
}
@@ -965,8 +965,7 @@ static void test_clip_expansion(skiatest::Reporter* reporter) {
p.setColor(SK_ColorBLUE);
canvas->drawPaint(p);
- SkBitmapDevice testDevice(SkBitmap::kNo_Config, 10, 10);
- ClipCountingCanvas testCanvas(&testDevice);
+ ClipCountingCanvas testCanvas(10, 10);
picture.draw(&testCanvas);
// Both clips should be present on playback.
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698