diff options
Diffstat (limited to 'ppapi/proxy/ppb_graphics_2d_proxy.cc')
-rw-r--r-- | ppapi/proxy/ppb_graphics_2d_proxy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/proxy/ppb_graphics_2d_proxy.cc b/ppapi/proxy/ppb_graphics_2d_proxy.cc index 47abef9..23c90fc 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(¤t_flush_callback_, result_code); + current_flush_callback_->Run(result_code); } PPB_Graphics2D_Proxy::PPB_Graphics2D_Proxy(Dispatcher* dispatcher) |