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

Side by Side Diff: gm/gm.h

Issue 151843002: Allow GMs ato be used as benchmarks. Make convex_poly_clip opt in. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address comments Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « gm/convexpolyclip.cpp ('k') | gyp/SampleApp.gyp » ('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 2011 Google Inc. 3 * Copyright 2011 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 #ifndef skiagm_DEFINED 8 #ifndef skiagm_DEFINED
9 #define skiagm_DEFINED 9 #define skiagm_DEFINED
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 kSkipPicture_Flag = 1 << 1, 42 kSkipPicture_Flag = 1 << 1,
43 kSkipPipe_Flag = 1 << 2, 43 kSkipPipe_Flag = 1 << 2,
44 kSkipPipeCrossProcess_Flag = 1 << 3, 44 kSkipPipeCrossProcess_Flag = 1 << 3,
45 kSkipTiled_Flag = 1 << 4, 45 kSkipTiled_Flag = 1 << 4,
46 kSkip565_Flag = 1 << 5, 46 kSkip565_Flag = 1 << 5,
47 kSkipScaledReplay_Flag = 1 << 6, 47 kSkipScaledReplay_Flag = 1 << 6,
48 kSkipGPU_Flag = 1 << 7, 48 kSkipGPU_Flag = 1 << 7,
49 kSkipPDFRasterization_Flag = 1 << 8, 49 kSkipPDFRasterization_Flag = 1 << 8,
50 50
51 kGPUOnly_Flag = 1 << 9, 51 kGPUOnly_Flag = 1 << 9,
52
53 kAsBench_Flag = 1 << 10, // Run the GM as a benchmark in the bench tool
52 }; 54 };
53 55
54 void draw(SkCanvas*); 56 void draw(SkCanvas*);
55 void drawBackground(SkCanvas*); 57 void drawBackground(SkCanvas*);
56 void drawContent(SkCanvas*); 58 void drawContent(SkCanvas*);
57 59
58 SkISize getISize() { return this->onISize(); } 60 SkISize getISize() { return this->onISize(); }
59 const char* shortName(); 61 const char* shortName();
60 62
61 uint32_t getFlags() const { 63 uint32_t getFlags() const {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 SkColor fBGColor; 122 SkColor fBGColor;
121 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp 123 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp
122 bool fHaveCalledOnceBeforeDraw; 124 bool fHaveCalledOnceBeforeDraw;
123 SkMatrix fStarterMatrix; 125 SkMatrix fStarterMatrix;
124 }; 126 };
125 127
126 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; 128 typedef SkTRegistry<GM*(*)(void*)> GMRegistry;
127 } 129 }
128 130
129 #endif 131 #endif
OLDNEW
« no previous file with comments | « gm/convexpolyclip.cpp ('k') | gyp/SampleApp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698