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

Unified Diff: experimental/SkiaExamples/SkExample.cpp

Issue 23453031: Rewrite SkTRegistry to take any trivially-copyable type. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: experimental/SkiaExamples/SkExample.cpp
diff --git a/experimental/SkiaExamples/SkExample.cpp b/experimental/SkiaExamples/SkExample.cpp
index d4adaf49249d28daf7db0c526f59218cbd4f9128..91f70f3e5b6112a8a09c7eafa0264597fff1f17f 100644
--- a/experimental/SkiaExamples/SkExample.cpp
+++ b/experimental/SkiaExamples/SkExample.cpp
@@ -39,7 +39,7 @@ void application_term() {
SkExampleWindow::SkExampleWindow(void* hwnd)
: INHERITED(hwnd) {
fRegistry = SkExample::Registry::Head();
- fCurrExample = fRegistry->factory()(this);
+ fCurrExample = fRegistry->data()(this);
if (FLAGS_match.count()) {
// Start with the a matching sample if possible.
@@ -166,7 +166,7 @@ bool SkExampleWindow::findNextMatch() {
if (NULL == fRegistry) { // Reached the end of the registered samples. GOTO head.
fRegistry = SkExample::Registry::Head();
}
- SkExample* next = fRegistry->factory()(this);
+ SkExample* next = fRegistry->data()(this);
if (!SkCommandLineFlags::ShouldSkip(FLAGS_match, next->getName().c_str())) {
fCurrExample = next;
found = true;

Powered by Google App Engine
This is Rietveld 408576698