OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ppapi/c/pp_errors.h" |
| 6 #include "ppapi/c/dev/ppb_layer_compositor_dev.h" |
| 7 #include "ppapi/thunk/thunk.h" |
| 8 #include "ppapi/thunk/enter.h" |
| 9 #include "ppapi/thunk/ppb_layer_compositor_api.h" |
| 10 #include "ppapi/thunk/resource_creation_api.h" |
| 11 |
| 12 namespace ppapi { |
| 13 namespace thunk { |
| 14 |
| 15 namespace { |
| 16 |
| 17 PP_Resource Create(PP_Instance instance) { |
| 18 return 0; |
| 19 } |
| 20 |
| 21 PP_Bool IsLayerCompositor(PP_Resource resource) { |
| 22 return PP_FALSE; |
| 23 } |
| 24 |
| 25 PP_Bool AddLayer(PP_Resource compositor, PP_Resource layer) { |
| 26 return PP_FALSE; |
| 27 } |
| 28 |
| 29 void RemoveLayer(PP_Resource compositor, PP_Resource layer) { |
| 30 } |
| 31 |
| 32 void SetZIndex(PP_Resource compositor, PP_Resource layer, int32_t index) { |
| 33 } |
| 34 |
| 35 void SetRect(PP_Resource compositor, PP_Resource layer, |
| 36 const struct PP_Rect* rect) { |
| 37 } |
| 38 |
| 39 void SetDisplay(PP_Resource compositor, PP_Resource layer, |
| 40 PP_Bool is_displayed) { |
| 41 } |
| 42 |
| 43 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) { |
| 44 } |
| 45 |
| 46 int32_t SwapBuffers(PP_Resource compositor, |
| 47 struct PP_CompletionCallback callback) { |
| 48 return PP_ERROR_FAILED; |
| 49 } |
| 50 |
| 51 const PPB_LayerCompositor_Dev g_ppb_layer_compositor_thunk = { |
| 52 &Create, |
| 53 &IsLayerCompositor, |
| 54 &AddLayer, |
| 55 &RemoveLayer, |
| 56 &SetZIndex, |
| 57 &SetRect, |
| 58 &SetDisplay, |
| 59 &MarkAsDirty, |
| 60 &SwapBuffers, |
| 61 }; |
| 62 |
| 63 } // namespace |
| 64 |
| 65 const PPB_LayerCompositor_Dev* GetPPB_LayerCompositor_Thunk() { |
| 66 return &g_ppb_layer_compositor_thunk; |
| 67 } |
| 68 |
| 69 } // namespace thunk |
| 70 } // namespace ppapi |
OLD | NEW |