| 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 "webkit/plugins/ppapi/common.h" | 8 #include "webkit/plugins/ppapi/common.h" |
| 8 | 9 |
| 9 namespace webkit { | 10 namespace webkit { |
| 10 namespace ppapi { | 11 namespace ppapi { |
| 11 | 12 |
| 12 namespace { | 13 namespace { |
| 13 | 14 |
| 14 PP_Resource Create(PP_Instance instance) { | 15 PP_Resource Create(PP_Instance instance) { |
| 15 return 0; | 16 return 0; |
| 16 } | 17 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 const struct PP_Rect* rect) { | 34 const struct PP_Rect* rect) { |
| 34 } | 35 } |
| 35 | 36 |
| 36 void SetDisplay(PP_Resource compositor, PP_Resource layer, | 37 void SetDisplay(PP_Resource compositor, PP_Resource layer, |
| 37 PP_Bool is_displayed) { | 38 PP_Bool is_displayed) { |
| 38 } | 39 } |
| 39 | 40 |
| 40 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) { | 41 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) { |
| 41 } | 42 } |
| 42 | 43 |
| 43 PP_Bool SwapBuffers(PP_Resource compositor, | 44 int32_t SwapBuffers(PP_Resource compositor, |
| 44 struct PP_CompletionCallback callback) { | 45 struct PP_CompletionCallback callback) { |
| 45 return PP_FALSE; | 46 return PP_ERROR_FAILED; |
| 46 } | 47 } |
| 47 | 48 |
| 48 const PPB_LayerCompositor_Dev ppb_layercompositor = { | 49 const PPB_LayerCompositor_Dev ppb_layercompositor = { |
| 49 &Create, | 50 &Create, |
| 50 &IsLayerCompositor, | 51 &IsLayerCompositor, |
| 51 &AddLayer, | 52 &AddLayer, |
| 52 &RemoveLayer, | 53 &RemoveLayer, |
| 53 &SetZIndex, | 54 &SetZIndex, |
| 54 &SetRect, | 55 &SetRect, |
| 55 &SetDisplay, | 56 &SetDisplay, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 const struct PP_Rect* rect) { | 91 const struct PP_Rect* rect) { |
| 91 } | 92 } |
| 92 | 93 |
| 93 void PPB_LayerCompositor_Impl::SetDisplay(PP_Resource layer, | 94 void PPB_LayerCompositor_Impl::SetDisplay(PP_Resource layer, |
| 94 PP_Bool is_displayed) { | 95 PP_Bool is_displayed) { |
| 95 } | 96 } |
| 96 | 97 |
| 97 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { | 98 void PPB_LayerCompositor_Impl::MarkAsDirty(PP_Resource layer) { |
| 98 } | 99 } |
| 99 | 100 |
| 100 PP_Bool PPB_LayerCompositor_Impl::SwapBuffers( | 101 int32_t PPB_LayerCompositor_Impl::SwapBuffers( |
| 101 struct PP_CompletionCallback callback) { | 102 struct PP_CompletionCallback callback) { |
| 102 return PP_FALSE; | 103 return PP_ERROR_FAILED; |
| 103 } | 104 } |
| 104 | 105 |
| 105 } // namespace ppapi | 106 } // namespace ppapi |
| 106 } // namespace webkit | 107 } // namespace webkit |
| OLD | NEW |