OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 sz.set(w, h); | 27 sz.set(w, h); |
28 return sz; | 28 return sz; |
29 } | 29 } |
30 | 30 |
31 class GM { | 31 class GM { |
32 public: | 32 public: |
33 GM(); | 33 GM(); |
34 virtual ~GM(); | 34 virtual ~GM(); |
35 | 35 |
36 enum Flags { | 36 enum Flags { |
37 kSkipPDF_Flag = 1 << 0, | 37 kSkipPDF_Flag = 1 << 0, |
38 kSkipPicture_Flag = 1 << 1, | 38 kSkipPicture_Flag = 1 << 1, |
39 kSkipPipe_Flag = 1 << 2, | 39 kSkipPipe_Flag = 1 << 2, |
40 kSkipTiled_Flag = 1 << 3, | 40 kSkipPipeCrossProcess_Flag = 1 << 3, |
41 kSkip565_Flag = 1 << 4, | 41 kSkipTiled_Flag = 1 << 4, |
42 kSkipScaledReplay_Flag = 1 << 5, | 42 kSkip565_Flag = 1 << 5, |
43 kSkipGPU_Flag = 1 << 6, | 43 kSkipScaledReplay_Flag = 1 << 6, |
| 44 kSkipGPU_Flag = 1 << 7, |
44 }; | 45 }; |
45 | 46 |
46 void draw(SkCanvas*); | 47 void draw(SkCanvas*); |
47 void drawBackground(SkCanvas*); | 48 void drawBackground(SkCanvas*); |
48 void drawContent(SkCanvas*); | 49 void drawContent(SkCanvas*); |
49 | 50 |
50 SkISize getISize() { return this->onISize(); } | 51 SkISize getISize() { return this->onISize(); } |
51 const char* shortName(); | 52 const char* shortName(); |
52 | 53 |
53 uint32_t getFlags() const { | 54 uint32_t getFlags() const { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 SkString fShortName; | 105 SkString fShortName; |
105 SkColor fBGColor; | 106 SkColor fBGColor; |
106 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp | 107 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp |
107 bool fHaveCalledOnceBeforeDraw; | 108 bool fHaveCalledOnceBeforeDraw; |
108 }; | 109 }; |
109 | 110 |
110 typedef SkTRegistry<GM*, void*> GMRegistry; | 111 typedef SkTRegistry<GM*, void*> GMRegistry; |
111 } | 112 } |
112 | 113 |
113 #endif | 114 #endif |
OLD | NEW |