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 24 matching lines...) Expand all Loading... |
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 kSkipPipeCrossProcess_Flag = 1 << 3, | 40 kSkipPipeCrossProcess_Flag = 1 << 3, |
41 kSkipTiled_Flag = 1 << 4, | 41 kSkipTiled_Flag = 1 << 4, |
42 kSkip565_Flag = 1 << 5, | 42 kSkip565_Flag = 1 << 5, |
43 kSkipScaledReplay_Flag = 1 << 6, | 43 kSkipScaledReplay_Flag = 1 << 6, |
44 kSkipGPU_Flag = 1 << 7, | 44 kSkipGPU_Flag = 1 << 7, |
| 45 kSkipPDFRasterization_Flag = 1 << 8, |
45 }; | 46 }; |
46 | 47 |
47 void draw(SkCanvas*); | 48 void draw(SkCanvas*); |
48 void drawBackground(SkCanvas*); | 49 void drawBackground(SkCanvas*); |
49 void drawContent(SkCanvas*); | 50 void drawContent(SkCanvas*); |
50 | 51 |
51 SkISize getISize() { return this->onISize(); } | 52 SkISize getISize() { return this->onISize(); } |
52 const char* shortName(); | 53 const char* shortName(); |
53 | 54 |
54 uint32_t getFlags() const { | 55 uint32_t getFlags() const { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 SkString fShortName; | 106 SkString fShortName; |
106 SkColor fBGColor; | 107 SkColor fBGColor; |
107 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp | 108 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp |
108 bool fHaveCalledOnceBeforeDraw; | 109 bool fHaveCalledOnceBeforeDraw; |
109 }; | 110 }; |
110 | 111 |
111 typedef SkTRegistry<GM*, void*> GMRegistry; | 112 typedef SkTRegistry<GM*, void*> GMRegistry; |
112 } | 113 } |
113 | 114 |
114 #endif | 115 #endif |
OLD | NEW |