From 7c4cdd2c5b7b6c71fa0e7612594f7885f2dbf264 Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 19 Nov 2014 07:17:16 -0800 Subject: Revert of allow pictures to have a full bounds (patchset #3 id:40001 of https://codereview.chromium.org/736583004/) Reason for revert: needed to update legacy width() helpers Original issue's description: > allow pictures to have a full bounds > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/7e76bff26e7c74902841ca4f607eb0b24a833a4a TBR=fmalita@google.com,mtklein@google.com,robertphillips@google.com,fmalita@chromium.org NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/722043005 --- samplecode/SampleArc.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'samplecode/SampleArc.cpp') diff --git a/samplecode/SampleArc.cpp b/samplecode/SampleArc.cpp index ecea90bf3f..a44eeb59ba 100644 --- a/samplecode/SampleArc.cpp +++ b/samplecode/SampleArc.cpp @@ -37,27 +37,6 @@ static void testparse() { SkParsePath::ToSVGString(p2, &str2); } -#include "SkPictureRecorder.h" -static void test_pictbounds(SkCanvas* canvas) { - SkRect r = SkRect::MakeXYWH(100, 50, 100, 100); - SkPictureRecorder recorder; - { - SkCanvas* c = recorder.beginRecording(r, NULL, 0); - c->drawOval(r, SkPaint()); - - SkIRect ir; - c->getClipDeviceBounds(&ir); - SkDebugf("devbounds [%d %d %d %d]\n", ir.left(), ir.top(), ir.right(), ir.bottom()); - - SkASSERT(!c->quickReject(r)); - } - SkPicture* pic = recorder.endRecording(); - - canvas->drawPicture(pic); - SkASSERT(pic->cullRect() == r); - pic->unref(); -} - class ArcsView : public SampleView { class MyDrawable : public SkCanvasDrawable { SkRect fR; @@ -197,8 +176,6 @@ protected: } virtual void onDrawContent(SkCanvas* canvas) { - if (true) { test_pictbounds(canvas); return; } - fDrawable->setSweep(SampleCode::GetAnimScalar(SkIntToScalar(360)/24, SkIntToScalar(360))); -- cgit v1.2.3