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

Side by Side Diff: ppapi/thunk/ppb_graphics_2d_api.h

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed indentation 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 #ifndef PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_ 5 #ifndef PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_
6 #define PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_ 6 #define PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 18 matching lines...) Expand all
29 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) = 0; 29 virtual PP_Bool Describe(PP_Size* size, PP_Bool* is_always_opaque) = 0;
30 virtual void PaintImageData(PP_Resource image_data, 30 virtual void PaintImageData(PP_Resource image_data,
31 const PP_Point* top_left, 31 const PP_Point* top_left,
32 const PP_Rect* src_rect) = 0; 32 const PP_Rect* src_rect) = 0;
33 virtual void Scroll(const PP_Rect* clip_rect, 33 virtual void Scroll(const PP_Rect* clip_rect,
34 const PP_Point* amount) = 0; 34 const PP_Point* amount) = 0;
35 virtual void ReplaceContents(PP_Resource image_data) = 0; 35 virtual void ReplaceContents(PP_Resource image_data) = 0;
36 virtual int32_t Flush(scoped_refptr<TrackedCallback> callback) = 0; 36 virtual int32_t Flush(scoped_refptr<TrackedCallback> callback) = 0;
37 virtual PP_Bool SetScale(float scale) = 0; 37 virtual PP_Bool SetScale(float scale) = 0;
38 virtual float GetScale() = 0; 38 virtual float GetScale() = 0;
39 virtual PP_Bool SetLayerTransform(float scale,
40 const PP_Point* srigin,
piman 2016/04/14 23:11:35 typo: srigin->origin
alessandroa 2016/04/21 15:39:22 Acknowledged.
41 const PP_Point* translate) = 0;
39 42
40 // Test only 43 // Test only
41 virtual bool ReadImageData(PP_Resource image, const PP_Point* top_left) = 0; 44 virtual bool ReadImageData(PP_Resource image, const PP_Point* top_left) = 0;
42 }; 45 };
43 46
44 } // namespace thunk 47 } // namespace thunk
45 } // namespace ppapi 48 } // namespace ppapi
46 49
47 #endif // PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_ 50 #endif // PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698