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

Side by Side Diff: gm/beziereffects.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/arcofzorro.cpp ('k') | gm/beziers.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 8
9 // This test only works with the GPU backend. 9 // This test only works with the GPU backend.
10 10
(...skipping 26 matching lines...) Expand all
37 37
38 protected: 38 protected:
39 SkString onShortName() SK_OVERRIDE { 39 SkString onShortName() SK_OVERRIDE {
40 return SkString("bezier_cubic_effects"); 40 return SkString("bezier_cubic_effects");
41 } 41 }
42 42
43 SkISize onISize() SK_OVERRIDE { 43 SkISize onISize() SK_OVERRIDE {
44 return SkISize::Make(800, 800); 44 return SkISize::Make(800, 800);
45 } 45 }
46 46
47 uint32_t onGetFlags() const SK_OVERRIDE {
48 // This is a GPU-specific GM.
49 return kGPUOnly_Flag;
50 }
51
52 47
53 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 48 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
54 GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget (); 49 GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget ();
55 if (NULL == rt) { 50 if (NULL == rt) {
56 return; 51 return;
57 } 52 }
58 GrContext* context = rt->getContext(); 53 GrContext* context = rt->getContext();
59 if (NULL == context) { 54 if (NULL == context) {
60 return; 55 return;
61 } 56 }
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 192
198 protected: 193 protected:
199 SkString onShortName() SK_OVERRIDE { 194 SkString onShortName() SK_OVERRIDE {
200 return SkString("bezier_conic_effects"); 195 return SkString("bezier_conic_effects");
201 } 196 }
202 197
203 SkISize onISize() SK_OVERRIDE { 198 SkISize onISize() SK_OVERRIDE {
204 return SkISize::Make(800, 800); 199 return SkISize::Make(800, 800);
205 } 200 }
206 201
207 uint32_t onGetFlags() const SK_OVERRIDE {
208 // This is a GPU-specific GM.
209 return kGPUOnly_Flag;
210 }
211
212 202
213 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 203 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
214 GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget (); 204 GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget ();
215 if (NULL == rt) { 205 if (NULL == rt) {
216 return; 206 return;
217 } 207 }
218 GrContext* context = rt->getContext(); 208 GrContext* context = rt->getContext();
219 if (NULL == context) { 209 if (NULL == context) {
220 return; 210 return;
221 } 211 }
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 380
391 protected: 381 protected:
392 SkString onShortName() SK_OVERRIDE { 382 SkString onShortName() SK_OVERRIDE {
393 return SkString("bezier_quad_effects"); 383 return SkString("bezier_quad_effects");
394 } 384 }
395 385
396 SkISize onISize() SK_OVERRIDE { 386 SkISize onISize() SK_OVERRIDE {
397 return SkISize::Make(800, 800); 387 return SkISize::Make(800, 800);
398 } 388 }
399 389
400 uint32_t onGetFlags() const SK_OVERRIDE {
401 // This is a GPU-specific GM.
402 return kGPUOnly_Flag;
403 }
404
405 390
406 void onDraw(SkCanvas* canvas) SK_OVERRIDE { 391 void onDraw(SkCanvas* canvas) SK_OVERRIDE {
407 GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget (); 392 GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget ();
408 if (NULL == rt) { 393 if (NULL == rt) {
409 return; 394 return;
410 } 395 }
411 GrContext* context = rt->getContext(); 396 GrContext* context = rt->getContext();
412 if (NULL == context) { 397 if (NULL == context) {
413 return; 398 return;
414 } 399 }
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 typedef GM INHERITED; 512 typedef GM INHERITED;
528 }; 513 };
529 514
530 DEF_GM( return SkNEW(BezierCubicEffects); ) 515 DEF_GM( return SkNEW(BezierCubicEffects); )
531 DEF_GM( return SkNEW(BezierConicEffects); ) 516 DEF_GM( return SkNEW(BezierConicEffects); )
532 DEF_GM( return SkNEW(BezierQuadEffects); ) 517 DEF_GM( return SkNEW(BezierQuadEffects); )
533 518
534 } 519 }
535 520
536 #endif 521 #endif
OLDNEW
« no previous file with comments | « gm/arcofzorro.cpp ('k') | gm/beziers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698