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

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

Issue 1412323002: ppapi: Support up to 32 subsamples in PP_EncryptedBlockInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 Aug 21 15:57:46 2014.
6 6
7 #include "ppapi/c/pp_completion_callback.h" 7 #include "ppapi/c/pp_completion_callback.h"
8 #include "ppapi/c/pp_errors.h" 8 #include "ppapi/c/pp_errors.h"
9 #include "ppapi/c/ppb_compositor_layer.h" 9 #include "ppapi/c/ppb_compositor_layer.h"
10 #include "ppapi/shared_impl/tracked_callback.h" 10 #include "ppapi/shared_impl/tracked_callback.h"
11 #include "ppapi/thunk/enter.h" 11 #include "ppapi/thunk/enter.h"
12 #include "ppapi/thunk/ppapi_thunk_export.h" 12 #include "ppapi/thunk/ppapi_thunk_export.h"
13 #include "ppapi/thunk/ppb_compositor_layer_api.h" 13 #include "ppapi/thunk/ppb_compositor_layer_api.h"
14 14
15 namespace ppapi { 15 namespace ppapi {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 int32_t SetPremultipliedAlpha(PP_Resource layer, PP_Bool premult) { 118 int32_t SetPremultipliedAlpha(PP_Resource layer, PP_Bool premult) {
119 VLOG(4) << "PPB_CompositorLayer::SetPremultipliedAlpha()"; 119 VLOG(4) << "PPB_CompositorLayer::SetPremultipliedAlpha()";
120 EnterResource<PPB_CompositorLayer_API> enter(layer, true); 120 EnterResource<PPB_CompositorLayer_API> enter(layer, true);
121 if (enter.failed()) 121 if (enter.failed())
122 return enter.retval(); 122 return enter.retval();
123 return enter.object()->SetPremultipliedAlpha(premult); 123 return enter.object()->SetPremultipliedAlpha(premult);
124 } 124 }
125 125
126 const PPB_CompositorLayer_0_1 g_ppb_compositorlayer_thunk_0_1 = { 126 const PPB_CompositorLayer_0_1 g_ppb_compositorlayer_thunk_0_1 = {
127 &IsCompositorLayer, 127 &IsCompositorLayer, &SetColor,
128 &SetColor, 128 &SetTexture_0_1, &SetImage,
129 &SetTexture_0_1, 129 &SetClipRect, &SetTransform,
130 &SetImage, 130 &SetOpacity, &SetBlendMode,
131 &SetClipRect, 131 &SetSourceRect, &SetPremultipliedAlpha};
132 &SetTransform,
133 &SetOpacity,
134 &SetBlendMode,
135 &SetSourceRect,
136 &SetPremultipliedAlpha};
137 132
138 const PPB_CompositorLayer_0_2 g_ppb_compositorlayer_thunk_0_2 = { 133 const PPB_CompositorLayer_0_2 g_ppb_compositorlayer_thunk_0_2 = {
139 &IsCompositorLayer, 134 &IsCompositorLayer, &SetColor,
140 &SetColor, 135 &SetTexture, &SetImage,
141 &SetTexture, 136 &SetClipRect, &SetTransform,
142 &SetImage, 137 &SetOpacity, &SetBlendMode,
143 &SetClipRect, 138 &SetSourceRect, &SetPremultipliedAlpha};
144 &SetTransform,
145 &SetOpacity,
146 &SetBlendMode,
147 &SetSourceRect,
148 &SetPremultipliedAlpha};
149 139
150 } // namespace 140 } // namespace
151 141
152 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_1* 142 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_1*
153 GetPPB_CompositorLayer_0_1_Thunk() { 143 GetPPB_CompositorLayer_0_1_Thunk() {
154 return &g_ppb_compositorlayer_thunk_0_1; 144 return &g_ppb_compositorlayer_thunk_0_1;
155 } 145 }
156 146
157 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_2* 147 PPAPI_THUNK_EXPORT const PPB_CompositorLayer_0_2*
158 GetPPB_CompositorLayer_0_2_Thunk() { 148 GetPPB_CompositorLayer_0_2_Thunk() {
159 return &g_ppb_compositorlayer_thunk_0_2; 149 return &g_ppb_compositorlayer_thunk_0_2;
160 } 150 }
161 151
162 } // namespace thunk 152 } // namespace thunk
163 } // namespace ppapi 153 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698