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

Side by Side Diff: gm/gm.cpp

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 | « gm/gm.h ('k') | include/core/SkImageDecoder.h » ('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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 using namespace skiagm; 9 using namespace skiagm;
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void GM::drawSizeBounds(SkCanvas* canvas, SkColor color) { 56 void GM::drawSizeBounds(SkCanvas* canvas, SkColor color) {
57 SkISize size = this->getISize(); 57 SkISize size = this->getISize();
58 SkRect r = SkRect::MakeWH(SkIntToScalar(size.width()), 58 SkRect r = SkRect::MakeWH(SkIntToScalar(size.width()),
59 SkIntToScalar(size.height())); 59 SkIntToScalar(size.height()));
60 SkPaint paint; 60 SkPaint paint;
61 paint.setColor(color); 61 paint.setColor(color);
62 canvas->drawRect(r, paint); 62 canvas->drawRect(r, paint);
63 } 63 }
64 64
65 // need to explicitly declare this, or we get some weird infinite loop llist 65 // need to explicitly declare this, or we get some weird infinite loop llist
66 template GMRegistry* SkTRegistry<GM*, void*>::gHead; 66 template GMRegistry* SkTRegistry<GM*(*)(void*)>::gHead;
OLDNEW
« no previous file with comments | « gm/gm.h ('k') | include/core/SkImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698