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

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: Updated TestURLLoader to test blocking callbacks. Created 8 years, 8 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 "webkit/plugins/ppapi/common.h" 8 #include "webkit/plugins/ppapi/common.h"
9 9
10 using ppapi::ApiCallbackType;
10 using ppapi::thunk::PPB_LayerCompositor_API; 11 using ppapi::thunk::PPB_LayerCompositor_API;
11 12
12 namespace webkit { 13 namespace webkit {
13 namespace ppapi { 14 namespace ppapi {
14 15
15 PPB_LayerCompositor_Impl::PPB_LayerCompositor_Impl(PP_Instance instance) 16 PPB_LayerCompositor_Impl::PPB_LayerCompositor_Impl(PP_Instance instance)
16 : Resource(::ppapi::OBJECT_IS_IMPL, instance) { 17 : Resource(::ppapi::OBJECT_IS_IMPL, instance) {
17 } 18 }
18 19
19 PPB_LayerCompositor_Impl::~PPB_LayerCompositor_Impl() { 20 PPB_LayerCompositor_Impl::~PPB_LayerCompositor_Impl() {
(...skipping 18 matching lines...) Expand all
38 const PP_Rect* rect) { 39 const PP_Rect* rect) {
39 } 40 }
40 41
41 void PPB_LayerCompositor_Impl::SetDisplay(PP_Resource layer, 42 void PPB_LayerCompositor_Impl::SetDisplay(PP_Resource layer,
42 PP_Bool is_displayed) { 43 PP_Bool is_displayed) {
43 } 44 }
44 45
45 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { 46 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) {
46 } 47 }
47 48
48 int32_t PPB_LayerCompositor_Impl::SwapBuffers(PP_CompletionCallback callback) { 49 int32_t PPB_LayerCompositor_Impl::SwapBuffers(ApiCallbackType callback) {
49 return PP_ERROR_FAILED; 50 return PP_ERROR_FAILED;
50 } 51 }
51 52
52 } // namespace ppapi 53 } // namespace ppapi
53 } // namespace webkit 54 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698