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

Side by Side Diff: webkit/plugins/ppapi/ppb_layer_compositor_impl.cc

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export AssertLockHeld Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h" 5 #include "webkit/plugins/ppapi/ppb_layer_compositor_impl.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/shared_impl/tracked_callback.h"
8 #include "webkit/plugins/ppapi/common.h" 9 #include "webkit/plugins/ppapi/common.h"
9 10
11 using ppapi::TrackedCallback;
10 using ppapi::thunk::PPB_LayerCompositor_API; 12 using ppapi::thunk::PPB_LayerCompositor_API;
11 13
12 namespace webkit { 14 namespace webkit {
13 namespace ppapi { 15 namespace ppapi {
14 16
15 PPB_LayerCompositor_Impl::PPB_LayerCompositor_Impl(PP_Instance instance) 17 PPB_LayerCompositor_Impl::PPB_LayerCompositor_Impl(PP_Instance instance)
16 : Resource(::ppapi::OBJECT_IS_IMPL, instance) { 18 : Resource(::ppapi::OBJECT_IS_IMPL, instance) {
17 } 19 }
18 20
19 PPB_LayerCompositor_Impl::~PPB_LayerCompositor_Impl() { 21 PPB_LayerCompositor_Impl::~PPB_LayerCompositor_Impl() {
(...skipping 18 matching lines...) Expand all
38 const PP_Rect* rect) { 40 const PP_Rect* rect) {
39 } 41 }
40 42
41 void PPB_LayerCompositor_Impl::SetDisplay(PP_Resource layer, 43 void PPB_LayerCompositor_Impl::SetDisplay(PP_Resource layer,
42 PP_Bool is_displayed) { 44 PP_Bool is_displayed) {
43 } 45 }
44 46
45 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { 47 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) {
46 } 48 }
47 49
48 int32_t PPB_LayerCompositor_Impl::SwapBuffers(PP_CompletionCallback callback) { 50 int32_t PPB_LayerCompositor_Impl::SwapBuffers(
51 scoped_refptr<TrackedCallback> callback) {
49 return PP_ERROR_FAILED; 52 return PP_ERROR_FAILED;
50 } 53 }
51 54
52 } // namespace ppapi 55 } // namespace ppapi
53 } // namespace webkit 56 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_layer_compositor_impl.h ('k') | webkit/plugins/ppapi/ppb_url_loader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698