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

Unified Diff: ppapi/cpp/paint_manager.cc

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | « ppapi/cpp/graphics_2d.cc ('k') | ppapi/cpp/private/flash_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/paint_manager.cc
===================================================================
--- ppapi/cpp/paint_manager.cc (revision 91178)
+++ ppapi/cpp/paint_manager.cc (working copy)
@@ -153,7 +153,7 @@
if (client_->OnPaint(graphics_, update.paint_rects, update.paint_bounds)) {
// Something was painted, schedule a flush.
int32_t result = graphics_.Flush(
- callback_factory_.NewCallback(&PaintManager::OnFlushComplete));
+ callback_factory_.NewOptionalCallback(&PaintManager::OnFlushComplete));
// If you trigger this assertion, then your plugin has called Flush()
// manually. When using the PaintManager, you should not call Flush, it
« no previous file with comments | « ppapi/cpp/graphics_2d.cc ('k') | ppapi/cpp/private/flash_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698