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

Unified Diff: remoting/client/plugin/chromoting_plugin.cc

Issue 2852024: Chromium side changes to use PP_CompletionCallback as the Flush callback.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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
« no previous file with comments | « DEPS ('k') | webkit/glue/plugins/pepper_device_context_2d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_plugin.cc
===================================================================
--- remoting/client/plugin/chromoting_plugin.cc (revision 50727)
+++ remoting/client/plugin/chromoting_plugin.cc (working copy)
@@ -16,6 +16,7 @@
#include "remoting/jingle_glue/jingle_thread.h"
#include "third_party/ppapi/c/pp_event.h"
#include "third_party/ppapi/c/pp_rect.h"
+#include "third_party/ppapi/cpp/completion_callback.h"
#include "third_party/ppapi/cpp/image_data.h"
using std::string;
@@ -47,7 +48,9 @@
main_thread_->Stop();
}
-bool ChromotingPlugin::Init(uint32_t argc, const char* argn[], const char* argv[]) {
+bool ChromotingPlugin::Init(uint32_t argc,
+ const char* argn[],
+ const char* argv[]) {
LOG(INFO) << "Started ChromotingPlugin::Init";
// Extract the URL from the arguments.
@@ -126,7 +129,7 @@
}
}
device_context_.ReplaceContents(&image);
- device_context_.Flush(NULL, this);
+ device_context_.Flush(pp::CompletionCallback(NULL, this));
} else {
LOG(ERROR) << "Unable to allocate image.";
}
« no previous file with comments | « DEPS ('k') | webkit/glue/plugins/pepper_device_context_2d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698