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

Side by Side Diff: gm/gm.h

Issue 26294004: GM: Allow ignored-tests.txt to list configs as well as tests (and combinations too) (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: clarify Created 7 years, 2 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 | « expectations/gm/ignored-tests.txt ('k') | gm/gm.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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void drawSizeBounds(SkCanvas*, SkColor); 87 void drawSizeBounds(SkCanvas*, SkColor);
88 88
89 static void SetResourcePath(const char* resourcePath) { 89 static void SetResourcePath(const char* resourcePath) {
90 gResourcePath = resourcePath; 90 gResourcePath = resourcePath;
91 } 91 }
92 92
93 static SkString& GetResourcePath() { 93 static SkString& GetResourcePath() {
94 return gResourcePath; 94 return gResourcePath;
95 } 95 }
96 96
97 bool isIgnoringFailures() const { return fIgnoreFailures; }
98 void setIgnoreFailures(bool val) {
99 fIgnoreFailures = val;
100 }
101
102 bool isCanvasDeferred() const { return fCanvasIsDeferred; } 97 bool isCanvasDeferred() const { return fCanvasIsDeferred; }
103 void setCanvasIsDeferred(bool isDeferred) { 98 void setCanvasIsDeferred(bool isDeferred) {
104 fCanvasIsDeferred = isDeferred; 99 fCanvasIsDeferred = isDeferred;
105 } 100 }
106 101
107 #if SK_SUPPORT_GPU 102 #if SK_SUPPORT_GPU
108 static GrContext* GetGr(/*very nearly const*/ SkCanvas*); 103 static GrContext* GetGr(/*very nearly const*/ SkCanvas*);
109 #endif 104 #endif
110 105
111 const SkMatrix& getStarterMatrix() { return fStarterMatrix; } 106 const SkMatrix& getStarterMatrix() { return fStarterMatrix; }
(...skipping 10 matching lines...) Expand all
122 virtual SkISize onISize() = 0; 117 virtual SkISize onISize() = 0;
123 virtual SkString onShortName() = 0; 118 virtual SkString onShortName() = 0;
124 virtual uint32_t onGetFlags() const { return 0; } 119 virtual uint32_t onGetFlags() const { return 0; }
125 virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); } 120 virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); }
126 121
127 private: 122 private:
128 SkString fShortName; 123 SkString fShortName;
129 SkColor fBGColor; 124 SkColor fBGColor;
130 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp 125 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp
131 bool fHaveCalledOnceBeforeDraw; 126 bool fHaveCalledOnceBeforeDraw;
132 bool fIgnoreFailures; // whether to file any failures as failure-ign ored
133 SkMatrix fStarterMatrix; 127 SkMatrix fStarterMatrix;
134 }; 128 };
135 129
136 typedef SkTRegistry<GM*(*)(void*)> GMRegistry; 130 typedef SkTRegistry<GM*(*)(void*)> GMRegistry;
137 } 131 }
138 132
139 #endif 133 #endif
OLDNEW
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | gm/gm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698