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

Side by Side Diff: gm/image.cpp

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/hittestpath.cpp ('k') | gm/imagealphathreshold.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 2011 Google Inc. 2 * Copyright 2011 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 "SkSurface.h" 9 #include "SkSurface.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 canvas->translate(80, 0); 184 canvas->translate(80, 0);
185 test_surface(canvas, surf1, true); 185 test_surface(canvas, surf1, true);
186 #if SK_SUPPORT_GPU 186 #if SK_SUPPORT_GPU
187 if (ctx) { 187 if (ctx) {
188 canvas->translate(80, 0); 188 canvas->translate(80, 0);
189 test_surface(canvas, surf4, true); 189 test_surface(canvas, surf4, true);
190 } 190 }
191 #endif 191 #endif
192 } 192 }
193 193
194 virtual uint32_t onGetFlags() const SK_OVERRIDE { 194 uint32_t onGetFlags() const SK_OVERRIDE {
195 return GM::kSkipPicture_Flag | GM::kSkipPipe_Flag; 195 return GM::kSkipPicture_Flag | GM::kSkipPipe_Flag;
196 } 196 }
197 197
198 private: 198 private:
199 typedef skiagm::GM INHERITED; 199 typedef skiagm::GM INHERITED;
200 }; 200 };
201 201
202 ////////////////////////////////////////////////////////////////////////////// 202 //////////////////////////////////////////////////////////////////////////////
203 203
204 static skiagm::GM* MyFactory(void*) { return new ImageGM; } 204 static skiagm::GM* MyFactory(void*) { return new ImageGM; }
205 static skiagm::GMRegistry reg(MyFactory); 205 static skiagm::GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/hittestpath.cpp ('k') | gm/imagealphathreshold.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698