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

Side by Side Diff: ppapi/api/ppb_graphics_2d.idl

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Graphics2D 1.2 to histograms Created 4 years, 8 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 | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | ppapi/c/pp_macros.h » ('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 (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 5
6 /** 6 /**
7 * Defines the <code>PPB_Graphics2D</code> struct representing a 2D graphics 7 * Defines the <code>PPB_Graphics2D</code> struct representing a 2D graphics
8 * context within the browser. 8 * context within the browser.
9 */ 9 */
10 10
11 [generate_thunk] 11 [generate_thunk]
12 12
13 label Chrome { 13 label Chrome {
14 M14 = 1.0, 14 M14 = 1.0,
15 M27 = 1.1 15 M27 = 1.1,
16 M52 = 1.2
16 }; 17 };
17 18
18 /** 19 /**
19 * <code>PPB_Graphics2D</code> defines the interface for a 2D graphics context. 20 * <code>PPB_Graphics2D</code> defines the interface for a 2D graphics context.
20 */ 21 */
21 [macro="PPB_GRAPHICS_2D_INTERFACE"] 22 [macro="PPB_GRAPHICS_2D_INTERFACE"]
22 interface PPB_Graphics2D { 23 interface PPB_Graphics2D {
23 /** 24 /**
24 * Create() creates a 2D graphics context. The returned graphics context will 25 * Create() creates a 2D graphics context. The returned graphics context will
25 * not be bound to the module instance on creation (call BindGraphics() on 26 * not be bound to the module instance on creation (call BindGraphics() on
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 * 276 *
276 * @param[in] resource A <code>Graphics2D</code> context resource. 277 * @param[in] resource A <code>Graphics2D</code> context resource.
277 * 278 *
278 * @return Returns the scale factor for the graphics context. If the resource 279 * @return Returns the scale factor for the graphics context. If the resource
279 * is not a valid <code>Graphics2D</code> context, this will return 0.0. 280 * is not a valid <code>Graphics2D</code> context, this will return 0.0.
280 */ 281 */
281 [version=1.1] 282 [version=1.1]
282 float_t GetScale( 283 float_t GetScale(
283 [in] PP_Resource resource); 284 [in] PP_Resource resource);
284 285
286 /**
287 * SetLayerTransform() sets a transformation factor that will be applied for
288 * the current graphics context displayed on the output device. If both
289 * SetScale and SetLayerTransform will be used, they are going to get combined
290 * for the final result.
291 *
292 * This function has no effect until you call Flush().
293 *
294 * @param[in] scale The scale to be applied.
295 * @param[in] origin The origin of the scale.
296 * @param[in] translate The translation to be applied.
297 *
298 * @return Returns <code>PP_TRUE</code> on success or <code>PP_FALSE</code>
299 * if the resource is invalid or the scale factor is 0 or less.
300 */
301 [version=1.2]
302 PP_Bool SetLayerTransform(
303 [in] PP_Resource resource,
304 [in] float_t scale,
305 [in] PP_Point origin,
306 [in] PP_Point translate);
285 }; 307 };
286 308
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698