| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // From ppb_compositor_layer.idl modified Thu Jan 29 16:28:15 2015. | 5 // From ppb_compositor_layer.idl modified Wed Jan 27 17:10:16 2016. |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "ppapi/c/pp_completion_callback.h" | 9 #include "ppapi/c/pp_completion_callback.h" |
| 10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
| 11 #include "ppapi/c/ppb_compositor_layer.h" | 11 #include "ppapi/c/ppb_compositor_layer.h" |
| 12 #include "ppapi/shared_impl/tracked_callback.h" | 12 #include "ppapi/shared_impl/tracked_callback.h" |
| 13 #include "ppapi/thunk/enter.h" | 13 #include "ppapi/thunk/enter.h" |
| 14 #include "ppapi/thunk/ppapi_thunk_export.h" | 14 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 15 #include "ppapi/thunk/ppb_compositor_layer_api.h" | 15 #include "ppapi/thunk/ppb_compositor_layer_api.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 | 119 |
| 120 int32_t SetPremultipliedAlpha(PP_Resource layer, PP_Bool premult) { | 120 int32_t SetPremultipliedAlpha(PP_Resource layer, PP_Bool premult) { |
| 121 VLOG(4) << "PPB_CompositorLayer::SetPremultipliedAlpha()"; | 121 VLOG(4) << "PPB_CompositorLayer::SetPremultipliedAlpha()"; |
| 122 EnterResource<PPB_CompositorLayer_API> enter(layer, true); | 122 EnterResource<PPB_CompositorLayer_API> enter(layer, true); |
| 123 if (enter.failed()) | 123 if (enter.failed()) |
| 124 return enter.retval(); | 124 return enter.retval(); |
| 125 return enter.object()->SetPremultipliedAlpha(premult); | 125 return enter.object()->SetPremultipliedAlpha(premult); |
| 126 } | 126 } |
| 127 | 127 |
| 128 const PPB_CompositorLayer_0_1 g_ppb_compositorlayer_thunk_0_1 = { | 128 const PPB_CompositorLayer_0_1 g_ppb_compositorlayer_thunk_0_1 = { |
| 129 &IsCompositorLayer, | 129 &IsCompositorLayer, &SetColor, |
| 130 &SetColor, | 130 &SetTexture_0_1, &SetImage, |
| 131 &SetTexture_0_1, | 131 &SetClipRect, &SetTransform, |
| 132 &SetImage, | 132 &SetOpacity, &SetBlendMode, |
| 133 &SetClipRect, | 133 &SetSourceRect, &SetPremultipliedAlpha}; |
| 134 &SetTransform, | |
| 135 &SetOpacity, | |
| 136 &SetBlendMode, | |
| 137 &SetSourceRect, | |
| 138 &SetPremultipliedAlpha}; | |
| 139 | 134 |
| 140 const PPB_CompositorLayer_0_2 g_ppb_compositorlayer_thunk_0_2 = { | 135 const PPB_CompositorLayer_0_2 g_ppb_compositorlayer_thunk_0_2 = { |
| 141 &IsCompositorLayer, | 136 &IsCompositorLayer, &SetColor, |
| 142 &SetColor, | 137 &SetTexture, &SetImage, |
| 143 &SetTexture, | 138 &SetClipRect, &SetTransform, |
| 144 &SetImage, | 139 &SetOpacity, &SetBlendMode, |
| 145 &SetClipRect, | 140 &SetSourceRect, &SetPremultipliedAlpha}; |
| 146 &SetTransform, | |
| 147 &SetOpacity, | |
| 148 &SetBlendMode, | |
| 149 &SetSourceRect, | |
| 150 &SetPremultipliedAlpha}; | |
| 151 | 141 |
| 152 } // namespace | 142 } // namespace |
| 153 | 143 |
| 154 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_1* | 144 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_1* |
| 155 GetPPB_CompositorLayer_0_1_Thunk() { | 145 GetPPB_CompositorLayer_0_1_Thunk() { |
| 156 return &g_ppb_compositorlayer_thunk_0_1; | 146 return &g_ppb_compositorlayer_thunk_0_1; |
| 157 } | 147 } |
| 158 | 148 |
| 159 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_2* | 149 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_2* |
| 160 GetPPB_CompositorLayer_0_2_Thunk() { | 150 GetPPB_CompositorLayer_0_2_Thunk() { |
| 161 return &g_ppb_compositorlayer_thunk_0_2; | 151 return &g_ppb_compositorlayer_thunk_0_2; |
| 162 } | 152 } |
| 163 | 153 |
| 164 } // namespace thunk | 154 } // namespace thunk |
| 165 } // namespace ppapi | 155 } // namespace ppapi |
| OLD | NEW |