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

Side by Side Diff: gm/bleed.cpp

Issue 867963004: remove unused GM flags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: guarded flags Created 5 years, 11 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/blurcircles.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 uint32_t onGetFlags() const SK_OVERRIDE {
89 return kSkipTiled_Flag;
90 }
91 88
92 SkString onShortName() SK_OVERRIDE { 89 SkString onShortName() SK_OVERRIDE {
93 return SkString("bleed"); 90 return SkString("bleed");
94 } 91 }
95 92
96 SkISize onISize() SK_OVERRIDE { 93 SkISize onISize() SK_OVERRIDE {
97 return SkISize::Make(kWidth, 780); 94 return SkISize::Make(kWidth, 780);
98 } 95 }
99 96
100 void onOnceBeforeDraw() SK_OVERRIDE { 97 void onOnceBeforeDraw() SK_OVERRIDE {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 static const int kSmallTextureSize = 6; 270 static const int kSmallTextureSize = 6;
274 static const int kMaxTextureSize = 32; 271 static const int kMaxTextureSize = 32;
275 272
276 SkBitmap fBitmapSmall; 273 SkBitmap fBitmapSmall;
277 SkBitmap fBitmapBig; 274 SkBitmap fBitmapBig;
278 275
279 typedef GM INHERITED; 276 typedef GM INHERITED;
280 }; 277 };
281 278
282 DEF_GM( return new BleedGM(); ) 279 DEF_GM( return new BleedGM(); )
OLDNEW
« no previous file with comments | « gm/bitmapscroll.cpp ('k') | gm/blurcircles.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698