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

Unified Diff: webkit/plugins/ppapi/ppb_layer_compositor_impl.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
Index: webkit/plugins/ppapi/ppb_layer_compositor_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_layer_compositor_impl.cc (revision 89886)
+++ webkit/plugins/ppapi/ppb_layer_compositor_impl.cc (working copy)
@@ -5,8 +5,11 @@
#include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h"
#include "ppapi/c/pp_errors.h"
+#include "ppapi/thunk/common.h"
#include "webkit/plugins/ppapi/common.h"
+using ppapi::thunk::MayForceCallback;
+
namespace webkit {
namespace ppapi {
@@ -43,7 +46,7 @@
int32_t SwapBuffers(PP_Resource compositor,
struct PP_CompletionCallback callback) {
- return PP_ERROR_FAILED;
+ return MayForceCallback(callback, PP_ERROR_FAILED);
}
const PPB_LayerCompositor_Dev ppb_layercompositor = {

Powered by Google App Engine
This is Rietveld 408576698