OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ppapi/c/pp_errors.h" | 5 #include "ppapi/c/pp_errors.h" |
6 #include "ppapi/c/dev/ppb_layer_compositor_dev.h" | 6 #include "ppapi/c/dev/ppb_layer_compositor_dev.h" |
7 #include "ppapi/thunk/common.h" | |
8 #include "ppapi/thunk/enter.h" | 7 #include "ppapi/thunk/enter.h" |
9 #include "ppapi/thunk/thunk.h" | 8 #include "ppapi/thunk/thunk.h" |
10 #include "ppapi/thunk/ppb_layer_compositor_api.h" | 9 #include "ppapi/thunk/ppb_layer_compositor_api.h" |
11 #include "ppapi/thunk/resource_creation_api.h" | 10 #include "ppapi/thunk/resource_creation_api.h" |
12 | 11 |
13 namespace ppapi { | 12 namespace ppapi { |
14 namespace thunk { | 13 namespace thunk { |
15 | 14 |
16 namespace { | 15 namespace { |
17 | 16 |
(...skipping 21 matching lines...) Expand all Loading... |
39 | 38 |
40 void SetDisplay(PP_Resource compositor, PP_Resource layer, | 39 void SetDisplay(PP_Resource compositor, PP_Resource layer, |
41 PP_Bool is_displayed) { | 40 PP_Bool is_displayed) { |
42 } | 41 } |
43 | 42 |
44 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) { | 43 void MarkAsDirty(PP_Resource compositor, PP_Resource layer) { |
45 } | 44 } |
46 | 45 |
47 int32_t SwapBuffers(PP_Resource compositor, | 46 int32_t SwapBuffers(PP_Resource compositor, |
48 struct PP_CompletionCallback callback) { | 47 struct PP_CompletionCallback callback) { |
49 return MayForceCallback(callback, PP_ERROR_FAILED); | 48 return PP_ERROR_NOINTERFACE; |
50 } | 49 } |
51 | 50 |
52 const PPB_LayerCompositor_Dev g_ppb_layer_compositor_thunk = { | 51 const PPB_LayerCompositor_Dev g_ppb_layer_compositor_thunk = { |
53 &Create, | 52 &Create, |
54 &IsLayerCompositor, | 53 &IsLayerCompositor, |
55 &AddLayer, | 54 &AddLayer, |
56 &RemoveLayer, | 55 &RemoveLayer, |
57 &SetZIndex, | 56 &SetZIndex, |
58 &SetRect, | 57 &SetRect, |
59 &SetDisplay, | 58 &SetDisplay, |
60 &MarkAsDirty, | 59 &MarkAsDirty, |
61 &SwapBuffers, | 60 &SwapBuffers, |
62 }; | 61 }; |
63 | 62 |
64 } // namespace | 63 } // namespace |
65 | 64 |
66 const PPB_LayerCompositor_Dev_0_2* GetPPB_LayerCompositor_Dev_0_2_Thunk() { | 65 const PPB_LayerCompositor_Dev_0_2* GetPPB_LayerCompositor_Dev_0_2_Thunk() { |
67 return &g_ppb_layer_compositor_thunk; | 66 return &g_ppb_layer_compositor_thunk; |
68 } | 67 } |
69 | 68 |
70 } // namespace thunk | 69 } // namespace thunk |
71 } // namespace ppapi | 70 } // namespace ppapi |
OLD | NEW |