OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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::thunk::PPB_LayerCompositor_API; | 10 using ppapi::thunk::PPB_LayerCompositor_API; |
11 | 11 |
12 namespace webkit { | 12 namespace webkit { |
13 namespace ppapi { | 13 namespace ppapi { |
14 | 14 |
15 PPB_LayerCompositor_Impl::PPB_LayerCompositor_Impl(PP_Instance instance) | 15 PPB_LayerCompositor_Impl::PPB_LayerCompositor_Impl(PP_Instance instance) |
16 : Resource(instance) { | 16 : Resource(::ppapi::OBJECT_IS_IMPL, instance) { |
17 } | 17 } |
18 | 18 |
19 PPB_LayerCompositor_Impl::~PPB_LayerCompositor_Impl() { | 19 PPB_LayerCompositor_Impl::~PPB_LayerCompositor_Impl() { |
20 } | 20 } |
21 | 21 |
22 PPB_LayerCompositor_API* | 22 PPB_LayerCompositor_API* |
23 PPB_LayerCompositor_Impl::AsPPB_LayerCompositor_API() { | 23 PPB_LayerCompositor_Impl::AsPPB_LayerCompositor_API() { |
24 return this; | 24 return this; |
25 } | 25 } |
26 | 26 |
(...skipping 17 matching lines...) Expand all Loading... |
44 | 44 |
45 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { | 45 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { |
46 } | 46 } |
47 | 47 |
48 int32_t PPB_LayerCompositor_Impl::SwapBuffers(PP_CompletionCallback callback) { | 48 int32_t PPB_LayerCompositor_Impl::SwapBuffers(PP_CompletionCallback callback) { |
49 return PP_ERROR_FAILED; | 49 return PP_ERROR_FAILED; |
50 } | 50 } |
51 | 51 |
52 } // namespace ppapi | 52 } // namespace ppapi |
53 } // namespace webkit | 53 } // namespace webkit |
OLD | NEW |