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

Unified Diff: ppapi/examples/flash_topmost/flash_topmost.cc

Issue 9651002: Add C++ wrappers for output parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: With swapping Created 8 years, 9 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: ppapi/examples/flash_topmost/flash_topmost.cc
diff --git a/ppapi/examples/flash_topmost/flash_topmost.cc b/ppapi/examples/flash_topmost/flash_topmost.cc
index fe17092e8b7a9c6e968d8d90362c378bb825fe7d..dcdcd23dc784356b11eedb74858f00d4c1f7bedd 100644
--- a/ppapi/examples/flash_topmost/flash_topmost.cc
+++ b/ppapi/examples/flash_topmost/flash_topmost.cc
@@ -45,7 +45,7 @@ class MyInstance : public pp::Instance {
void ScheduleNextTimer() {
pp::Module::Get()->core()->CallOnMainThread(
kTimerInterval,
- callback_factory_.NewRequiredCallback(&MyInstance::OnTimer),
+ callback_factory_.NewCallback(&MyInstance::OnTimer),
0);
}
@@ -76,7 +76,7 @@ class MyInstance : public pp::Instance {
device_context_.ReplaceContents(&image);
waiting_for_flush_completion_ = true;
device_context_.Flush(
- callback_factory_.NewRequiredCallback(&MyInstance::DidFlush));
+ callback_factory_.NewCallback(&MyInstance::DidFlush));
}
}

Powered by Google App Engine
This is Rietveld 408576698