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 namespace webkit { | 10 namespace webkit { |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 void SetDisplay(PP_Resource compositor, PP_Resource layer, | 37 void SetDisplay(PP_Resource compositor, PP_Resource layer, |
38 PP_Bool is_displayed) { | 38 PP_Bool is_displayed) { |
39 } | 39 } |
40 | 40 |
41 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) { | 41 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) { |
42 } | 42 } |
43 | 43 |
44 int32_t SwapBuffers(PP_Resource compositor, | 44 int32_t SwapBuffers(PP_Resource compositor, |
45 struct PP_CompletionCallback callback) { | 45 struct PP_CompletionCallback callback) { |
46 return PP_ERROR_FAILED; | 46 return MayForceCallback(callback, PP_ERROR_FAILED); |
47 } | 47 } |
48 | 48 |
49 const PPB_LayerCompositor_Dev ppb_layercompositor = { | 49 const PPB_LayerCompositor_Dev ppb_layercompositor = { |
50 &Create, | 50 &Create, |
51 &IsLayerCompositor, | 51 &IsLayerCompositor, |
52 &AddLayer, | 52 &AddLayer, |
53 &RemoveLayer, | 53 &RemoveLayer, |
54 &SetZIndex, | 54 &SetZIndex, |
55 &SetRect, | 55 &SetRect, |
56 &SetDisplay, | 56 &SetDisplay, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { | 98 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { |
99 } | 99 } |
100 | 100 |
101 int32_t PPB_LayerCompositor_Impl::SwapBuffers( | 101 int32_t PPB_LayerCompositor_Impl::SwapBuffers( |
102 struct PP_CompletionCallback callback) { | 102 struct PP_CompletionCallback callback) { |
103 return PP_ERROR_FAILED; | 103 return PP_ERROR_FAILED; |
104 } | 104 } |
105 | 105 |
106 } // namespace ppapi | 106 } // namespace ppapi |
107 } // namespace webkit | 107 } // namespace webkit |
OLD | NEW |