OLD | NEW |
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 Loading... |
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 |
OLD | NEW |