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

Side by Side Diff: gm/bleed.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/bitmapshader.cpp ('k') | gm/blurrect.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 "SkBlurMask.h" 9 #include "SkBlurMask.h"
10 #include "SkBlurMaskFilter.h" 10 #include "SkBlurMaskFilter.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 result->setImmutable(); 79 result->setImmutable();
80 } 80 }
81 81
82 // This GM exercises the drawBitmapRectToRect "bleed" flag 82 // This GM exercises the drawBitmapRectToRect "bleed" flag
83 class BleedGM : public skiagm::GM { 83 class BleedGM : public skiagm::GM {
84 public: 84 public:
85 BleedGM() {} 85 BleedGM() {}
86 86
87 protected: 87 protected:
88 virtual uint32_t onGetFlags() const SK_OVERRIDE {
89 return kSkipTiled_Flag;
90 }
91
88 virtual SkString onShortName() SK_OVERRIDE { 92 virtual SkString onShortName() SK_OVERRIDE {
89 return SkString("bleed"); 93 return SkString("bleed");
90 } 94 }
91 95
92 virtual SkISize onISize() SK_OVERRIDE { 96 virtual SkISize onISize() SK_OVERRIDE {
93 return SkISize::Make(kWidth, 780); 97 return SkISize::Make(kWidth, 780);
94 } 98 }
95 99
96 virtual void onOnceBeforeDraw() SK_OVERRIDE { 100 virtual void onOnceBeforeDraw() SK_OVERRIDE {
97 make_ringed_bitmap(&fBitmapSmall, kSmallTextureSize, kSmallTextureSize); 101 make_ringed_bitmap(&fBitmapSmall, kSmallTextureSize, kSmallTextureSize);
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 static const int kSmallTextureSize = 6; 273 static const int kSmallTextureSize = 6;
270 static const int kMaxTextureSize = 32; 274 static const int kMaxTextureSize = 32;
271 275
272 SkBitmap fBitmapSmall; 276 SkBitmap fBitmapSmall;
273 SkBitmap fBitmapBig; 277 SkBitmap fBitmapBig;
274 278
275 typedef GM INHERITED; 279 typedef GM INHERITED;
276 }; 280 };
277 281
278 DEF_GM( return new BleedGM(); ) 282 DEF_GM( return new BleedGM(); )
OLDNEW
« no previous file with comments | « gm/bitmapshader.cpp ('k') | gm/blurrect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698