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

Side by Side Diff: gm/imagefiltersgraph.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/imagefilterscropped.cpp ('k') | gm/imagefiltersscaled.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 9
10 #include "SkArithmeticMode.h" 10 #include "SkArithmeticMode.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 str->appendf("SimpleOffsetFilter: ("); 95 str->appendf("SimpleOffsetFilter: (");
96 str->append(")"); 96 str->append(")");
97 } 97 }
98 #endif 98 #endif
99 99
100 class ImageFiltersGraphGM : public skiagm::GM { 100 class ImageFiltersGraphGM : public skiagm::GM {
101 public: 101 public:
102 ImageFiltersGraphGM() {} 102 ImageFiltersGraphGM() {}
103 103
104 protected: 104 protected:
105 uint32_t onGetFlags() const SK_OVERRIDE {
106 return kSkipTiled_Flag;
107 }
108 105
109 virtual SkString onShortName() { 106 virtual SkString onShortName() {
110 return SkString("imagefiltersgraph"); 107 return SkString("imagefiltersgraph");
111 } 108 }
112 109
113 void make_bitmap() { 110 void make_bitmap() {
114 fBitmap.allocN32Pixels(100, 100); 111 fBitmap.allocN32Pixels(100, 100);
115 SkCanvas canvas(fBitmap); 112 SkCanvas canvas(fBitmap);
116 canvas.clear(0x00000000); 113 canvas.clear(0x00000000);
117 SkPaint paint; 114 SkPaint paint;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 224
228 private: 225 private:
229 typedef GM INHERITED; 226 typedef GM INHERITED;
230 SkBitmap fBitmap; 227 SkBitmap fBitmap;
231 }; 228 };
232 229
233 /////////////////////////////////////////////////////////////////////////////// 230 ///////////////////////////////////////////////////////////////////////////////
234 231
235 static skiagm::GM* MyFactory(void*) { return new ImageFiltersGraphGM; } 232 static skiagm::GM* MyFactory(void*) { return new ImageFiltersGraphGM; }
236 static skiagm::GMRegistry reg(MyFactory); 233 static skiagm::GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/imagefilterscropped.cpp ('k') | gm/imagefiltersscaled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698