Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: ppapi/thunk/ppb_compositor_layer_thunk.cc

Issue 1778683003: Ran ppapi/generators/generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/thunk/ppb_camera_device_private_thunk.cc ('k') | ppapi/thunk/ppb_compositor_thunk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 Thu Sep 25 18:16:44 2014.
6
7 #include <stdint.h>
8 6
9 #include "ppapi/c/pp_completion_callback.h" 7 #include "ppapi/c/pp_completion_callback.h"
10 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
11 #include "ppapi/c/ppb_compositor_layer.h" 9 #include "ppapi/c/ppb_compositor_layer.h"
12 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
13 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
14 #include "ppapi/thunk/ppapi_thunk_export.h" 12 #include "ppapi/thunk/ppapi_thunk_export.h"
15 #include "ppapi/thunk/ppb_compositor_layer_api.h" 13 #include "ppapi/thunk/ppb_compositor_layer_api.h"
16 14
17 namespace ppapi { 15 namespace ppapi {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 117
120 int32_t SetPremultipliedAlpha(PP_Resource layer, PP_Bool premult) { 118 int32_t SetPremultipliedAlpha(PP_Resource layer, PP_Bool premult) {
121 VLOG(4) << "PPB_CompositorLayer::SetPremultipliedAlpha()"; 119 VLOG(4) << "PPB_CompositorLayer::SetPremultipliedAlpha()";
122 EnterResource<PPB_CompositorLayer_API> enter(layer, true); 120 EnterResource<PPB_CompositorLayer_API> enter(layer, true);
123 if (enter.failed()) 121 if (enter.failed())
124 return enter.retval(); 122 return enter.retval();
125 return enter.object()->SetPremultipliedAlpha(premult); 123 return enter.object()->SetPremultipliedAlpha(premult);
126 } 124 }
127 125
128 const PPB_CompositorLayer_0_1 g_ppb_compositorlayer_thunk_0_1 = { 126 const PPB_CompositorLayer_0_1 g_ppb_compositorlayer_thunk_0_1 = {
129 &IsCompositorLayer, 127 &IsCompositorLayer, &SetColor,
130 &SetColor, 128 &SetTexture_0_1, &SetImage,
131 &SetTexture_0_1, 129 &SetClipRect, &SetTransform,
132 &SetImage, 130 &SetOpacity, &SetBlendMode,
133 &SetClipRect, 131 &SetSourceRect, &SetPremultipliedAlpha};
134 &SetTransform,
135 &SetOpacity,
136 &SetBlendMode,
137 &SetSourceRect,
138 &SetPremultipliedAlpha};
139 132
140 const PPB_CompositorLayer_0_2 g_ppb_compositorlayer_thunk_0_2 = { 133 const PPB_CompositorLayer_0_2 g_ppb_compositorlayer_thunk_0_2 = {
141 &IsCompositorLayer, 134 &IsCompositorLayer, &SetColor,
142 &SetColor, 135 &SetTexture, &SetImage,
143 &SetTexture, 136 &SetClipRect, &SetTransform,
144 &SetImage, 137 &SetOpacity, &SetBlendMode,
145 &SetClipRect, 138 &SetSourceRect, &SetPremultipliedAlpha};
146 &SetTransform,
147 &SetOpacity,
148 &SetBlendMode,
149 &SetSourceRect,
150 &SetPremultipliedAlpha};
151 139
152 } // namespace 140 } // namespace
153 141
154 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_1* 142 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_1*
155 GetPPB_CompositorLayer_0_1_Thunk() { 143 GetPPB_CompositorLayer_0_1_Thunk() {
156 return &g_ppb_compositorlayer_thunk_0_1; 144 return &g_ppb_compositorlayer_thunk_0_1;
157 } 145 }
158 146
159 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_2* 147 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_2*
160 GetPPB_CompositorLayer_0_2_Thunk() { 148 GetPPB_CompositorLayer_0_2_Thunk() {
161 return &g_ppb_compositorlayer_thunk_0_2; 149 return &g_ppb_compositorlayer_thunk_0_2;
162 } 150 }
163 151
164 } // namespace thunk 152 } // namespace thunk
165 } // namespace ppapi 153 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_camera_device_private_thunk.cc ('k') | ppapi/thunk/ppb_compositor_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698