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

Unified Diff: ppapi/proxy/ppb_graphics_2d_proxy.cc

Issue 10909244: PPAPI: Get TrackedCallback ready for running on non-main threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged. Created 8 years, 1 month 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 | « ppapi/proxy/ppb_flash_menu_proxy.cc ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_graphics_2d_proxy.cc
diff --git a/ppapi/proxy/ppb_graphics_2d_proxy.cc b/ppapi/proxy/ppb_graphics_2d_proxy.cc
index 47abef9689aa0630548eebe32ad852ef96fa5af3..23c90fc1719dcb10b92433add7b26bfc0650c771 100644
--- a/ppapi/proxy/ppb_graphics_2d_proxy.cc
+++ b/ppapi/proxy/ppb_graphics_2d_proxy.cc
@@ -65,7 +65,7 @@ class Graphics2D : public Resource, public thunk::PPB_Graphics2D_API {
float scale_;
// In the plugin, this is the current callback set for Flushes. When the
- // pointer is non-NULL, we're waiting for a flush ACK.
+ // callback is pending, we're waiting for a flush ACK.
scoped_refptr<TrackedCallback> current_flush_callback_;
DISALLOW_COPY_AND_ASSIGN(Graphics2D);
@@ -167,7 +167,7 @@ int32_t Graphics2D::Flush(scoped_refptr<TrackedCallback> callback,
}
void Graphics2D::FlushACK(int32_t result_code) {
- TrackedCallback::ClearAndRun(&current_flush_callback_, result_code);
+ current_flush_callback_->Run(result_code);
}
PPB_Graphics2D_Proxy::PPB_Graphics2D_Proxy(Dispatcher* dispatcher)
« no previous file with comments | « ppapi/proxy/ppb_flash_menu_proxy.cc ('k') | ppapi/proxy/ppb_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698