OLD | NEW |
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 Loading... |
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* origin, |
| 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_ |
OLD | NEW |