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

Side by Side Diff: gm/bitmapshader.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/bitmapscroll.cpp ('k') | gm/bleed.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "gm.h" 8 #include "gm.h"
9 9
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class BitmapShaderGM : public GM { 43 class BitmapShaderGM : public GM {
44 public: 44 public:
45 45
46 BitmapShaderGM() { 46 BitmapShaderGM() {
47 this->setBGColor(SK_ColorGRAY); 47 this->setBGColor(SK_ColorGRAY);
48 draw_bm(&fBitmap); 48 draw_bm(&fBitmap);
49 draw_mask(&fMask); 49 draw_mask(&fMask);
50 } 50 }
51 51
52 protected: 52 protected:
53 virtual uint32_t onGetFlags() const SK_OVERRIDE {
54 return kSkipTiled_Flag;
55 }
56
53 virtual SkString onShortName() { 57 virtual SkString onShortName() {
54 return SkString("bitmapshaders"); 58 return SkString("bitmapshaders");
55 } 59 }
56 60
57 virtual SkISize onISize() { 61 virtual SkISize onISize() {
58 return SkISize::Make(150, 100); 62 return SkISize::Make(150, 100);
59 } 63 }
60 64
61 virtual void onDraw(SkCanvas* canvas) { 65 virtual void onDraw(SkCanvas* canvas) {
62 SkPaint paint; 66 SkPaint paint;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 114
111 typedef GM INHERITED; 115 typedef GM INHERITED;
112 }; 116 };
113 117
114 ////////////////////////////////////////////////////////////////////////////// 118 //////////////////////////////////////////////////////////////////////////////
115 119
116 static GM* MyFactory(void*) { return new BitmapShaderGM; } 120 static GM* MyFactory(void*) { return new BitmapShaderGM; }
117 static GMRegistry reg(MyFactory); 121 static GMRegistry reg(MyFactory);
118 122
119 } 123 }
OLDNEW
« no previous file with comments | « gm/bitmapscroll.cpp ('k') | gm/bleed.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698