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

Side by Side Diff: gm/gm.h

Issue 23192004: Fixes for factory GM. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Be more specific about what to skip. Created 7 years, 4 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/factory.cpp ('k') | gm/gmmain.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 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
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
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
OLDNEW
« no previous file with comments | « gm/factory.cpp ('k') | gm/gmmain.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698