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

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: Changes for version 1.2 of Graphics2D 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
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 * This function has no effect until you call Flush().
raymes 2016/04/20 00:48:54 nit fill 80 chars above or add a new line above fo
292 * @param[in] scale The scale to be applied.
293 * @param[in] origin The origin of the scale.
294 * @param[in] translate The translation to be applied.
295 *
296 * @return Returns <code>PP_TRUE</code> on success or <code>PP_FALSE</code>
297 * if the resource is invalid or the scale factor is 0 or less.
298 */
299 [version=1.2]
300 PP_Bool SetLayerTransform(
301 [in] PP_Resource resource,
302 [in] float_t scale,
303 [in] PP_Point origin,
304 [in] PP_Point translate);
285 }; 305 };
286 306
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698