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

Side by Side Diff: gm/bigtext.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/bigmatrix.cpp ('k') | gm/bitmapmatrix.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 2013 Google Inc. 2 * Copyright 2013 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"
11 11
12 /** 12 /**
13 * Skia may draw from outlines when the size is very large, so we exercise that 13 * Skia may draw from outlines when the size is very large, so we exercise that
14 * here. 14 * here.
15 */ 15 */
16 16
17 class BigTextGM : public skiagm::GM { 17 class BigTextGM : public skiagm::GM {
18 public: 18 public:
19 BigTextGM() {} 19 BigTextGM() {}
20 20
21 protected: 21 protected:
22 virtual uint32_t onGetFlags() const SK_OVERRIDE {
23 return kSkipTiled_Flag;
24 }
25
22 virtual SkString onShortName() SK_OVERRIDE { 26 virtual SkString onShortName() SK_OVERRIDE {
23 return SkString("bigtext"); 27 return SkString("bigtext");
24 } 28 }
25 29
26 virtual SkISize onISize() SK_OVERRIDE { 30 virtual SkISize onISize() SK_OVERRIDE {
27 return SkISize::Make(640, 480); 31 return SkISize::Make(640, 480);
28 } 32 }
29 33
30 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE { 34 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
31 SkPaint paint; 35 SkPaint paint;
(...skipping 12 matching lines...) Expand all
44 48
45 paint.setColor(SK_ColorBLUE); 49 paint.setColor(SK_ColorBLUE);
46 canvas->drawPosText("\\", 1, &pos, paint); 50 canvas->drawPosText("\\", 1, &pos, paint);
47 } 51 }
48 52
49 private: 53 private:
50 typedef skiagm::GM INHERITED; 54 typedef skiagm::GM INHERITED;
51 }; 55 };
52 56
53 DEF_GM( return SkNEW(BigTextGM); ) 57 DEF_GM( return SkNEW(BigTextGM); )
OLDNEW
« no previous file with comments | « gm/bigmatrix.cpp ('k') | gm/bitmapmatrix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698