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