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

Side by Side Diff: gm/gm.h

Issue 23453031: Rewrite SkTRegistry to take any trivially-copyable type. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: reed+scroggo Created 7 years, 3 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 | « experimental/SkiaExamples/SkExample.h ('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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual uint32_t onGetFlags() const { return 0; } 104 virtual uint32_t onGetFlags() const { return 0; }
105 virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); } 105 virtual SkMatrix onGetInitialTransform() const { return SkMatrix::I(); }
106 106
107 private: 107 private:
108 SkString fShortName; 108 SkString fShortName;
109 SkColor fBGColor; 109 SkColor fBGColor;
110 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp 110 bool fCanvasIsDeferred; // work-around problem in srcmode.cpp
111 bool fHaveCalledOnceBeforeDraw; 111 bool fHaveCalledOnceBeforeDraw;
112 }; 112 };
113 113
114 typedef SkTRegistry<GM*, void*> GMRegistry; 114 typedef SkTRegistry<GM*(*)(void*)> GMRegistry;
115 } 115 }
116 116
117 #endif 117 #endif
OLDNEW
« no previous file with comments | « experimental/SkiaExamples/SkExample.h ('k') | gm/gm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698