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

Side by Side Diff: gm/techtalk1.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/tallstretchedbitmaps.cpp ('k') | gm/testimagefilters.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 2012 Google Inc. 3 * Copyright 2012 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 #include "gm.h" 8 #include "gm.h"
9 9
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 SkISize size = canvas->getDeviceSize(); 352 SkISize size = canvas->getDeviceSize();
353 SkRect dst = SkRect::MakeWH(size.width(), size.height()); 353 SkRect dst = SkRect::MakeWH(size.width(), size.height());
354 SkRect src = SkRect::MakeWH(640, 480); 354 SkRect src = SkRect::MakeWH(640, 480);
355 SkMatrix matrix; 355 SkMatrix matrix;
356 matrix.setRectToRect(src, dst, SkMatrix::kCenter_ScaleToFit); 356 matrix.setRectToRect(src, dst, SkMatrix::kCenter_ScaleToFit);
357 357
358 canvas->concat(matrix); 358 canvas->concat(matrix);
359 fProc(canvas, fShowGL, fFlags); 359 fProc(canvas, fShowGL, fFlags);
360 } 360 }
361 361
362 uint32_t onGetFlags() const SK_OVERRIDE {
363 return kSkipPDF_Flag | kSkipPicture_Flag | kSkipPipe_Flag | kSkipTiled_ Flag;
364 }
365
366 private: 362 private:
367 typedef skiagm::GM INHERITED; 363 typedef skiagm::GM INHERITED;
368 }; 364 };
369 365
370 ////////////////////////////////////////////////////////////////////////////// 366 //////////////////////////////////////////////////////////////////////////////
371 367
372 #define GM_CONCAT(X,Y) GM_CONCAT_IMPL(X,Y) 368 #define GM_CONCAT(X,Y) GM_CONCAT_IMPL(X,Y)
373 #define GM_CONCAT_IMPL(X,Y) X##Y 369 #define GM_CONCAT_IMPL(X,Y) X##Y
374 370
375 #define FACTORY_NAME GM_CONCAT(Factory, __LINE__) 371 #define FACTORY_NAME GM_CONCAT(Factory, __LINE__)
(...skipping 12 matching lines...) Expand all
388 ADD_GM(TalkGM, (2, true, 1)) 384 ADD_GM(TalkGM, (2, true, 1))
389 ADD_GM(TalkGM, (2, true, 2)) 385 ADD_GM(TalkGM, (2, true, 2))
390 ADD_GM(TalkGM, (2, true, 3)) 386 ADD_GM(TalkGM, (2, true, 3))
391 ADD_GM(TalkGM, (3, false)) 387 ADD_GM(TalkGM, (3, false))
392 ADD_GM(TalkGM, (3, true)) 388 ADD_GM(TalkGM, (3, true))
393 ADD_GM(TalkGM, (4, false)) 389 ADD_GM(TalkGM, (4, false))
394 ADD_GM(TalkGM, (4, true)) 390 ADD_GM(TalkGM, (4, true))
395 391
396 //static GM* MyFactory(void*) { return new TalkGM(0, false); } 392 //static GM* MyFactory(void*) { return new TalkGM(0, false); }
397 //static GMRegistry reg(MyFactory); 393 //static GMRegistry reg(MyFactory);
OLDNEW
« no previous file with comments | « gm/tallstretchedbitmaps.cpp ('k') | gm/testimagefilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698