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

Side by Side Diff: gm/strokerect.cpp

Issue 256373002: Turn on quilt mode in DM. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 7 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 unified diff | Download patch
« no previous file with comments | « gm/strokefill.cpp ('k') | gm/strokerects.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 28 matching lines...) Expand all
39 * Test calling SkStroker for rectangles. Cases to cover: 39 * Test calling SkStroker for rectangles. Cases to cover:
40 * 40 *
41 * geometry: normal, small (smaller than stroke-width), empty, inverted 41 * geometry: normal, small (smaller than stroke-width), empty, inverted
42 * joint-type for the corners 42 * joint-type for the corners
43 */ 43 */
44 class StrokeRectGM : public skiagm::GM { 44 class StrokeRectGM : public skiagm::GM {
45 public: 45 public:
46 StrokeRectGM() {} 46 StrokeRectGM() {}
47 47
48 protected: 48 protected:
49 virtual uint32_t onGetFlags() const SK_OVERRIDE {
50 return kSkipTiled_Flag;
51 }
52
49 virtual SkString onShortName() { 53 virtual SkString onShortName() {
50 return SkString("strokerect"); 54 return SkString("strokerect");
51 } 55 }
52 56
53 virtual SkISize onISize() { 57 virtual SkISize onISize() {
54 return SkISize::Make(1024, 740); 58 return SkISize::Make(1024, 740);
55 } 59 }
56 60
57 virtual void onDraw(SkCanvas* canvas) { 61 virtual void onDraw(SkCanvas* canvas) {
58 canvas->drawColor(SK_ColorWHITE); 62 canvas->drawColor(SK_ColorWHITE);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 107 }
104 } 108 }
105 109
106 private: 110 private:
107 typedef GM INHERITED; 111 typedef GM INHERITED;
108 }; 112 };
109 113
110 //////////////////////////////////////////////////////////////////////////////// /////////////////// 114 //////////////////////////////////////////////////////////////////////////////// ///////////////////
111 115
112 DEF_GM(return new StrokeRectGM;) 116 DEF_GM(return new StrokeRectGM;)
OLDNEW
« no previous file with comments | « gm/strokefill.cpp ('k') | gm/strokerects.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698