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_CPP_GRAPHICS_2D_H_ | 5 #ifndef PPAPI_CPP_GRAPHICS_2D_H_ |
6 #define PPAPI_CPP_GRAPHICS_2D_H_ | 6 #define PPAPI_CPP_GRAPHICS_2D_H_ |
7 | 7 |
8 #include "ppapi/c/pp_stdint.h" | 8 #include "ppapi/c/pp_stdint.h" |
9 #include "ppapi/cpp/resource.h" | 9 #include "ppapi/cpp/resource.h" |
10 #include "ppapi/cpp/size.h" | 10 #include "ppapi/cpp/size.h" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 bool SetScale(float scale); | 277 bool SetScale(float scale); |
278 | 278 |
279 /// GetScale() gets the scale factor that will be applied when painting the | 279 /// GetScale() gets the scale factor that will be applied when painting the |
280 /// graphics context onto the output device. | 280 /// graphics context onto the output device. |
281 /// | 281 /// |
282 /// @return Returns the scale factor for the graphics context. If the resource | 282 /// @return Returns the scale factor for the graphics context. If the resource |
283 /// is invalid, 0.0 will be returned. The default scale for a graphics context | 283 /// is invalid, 0.0 will be returned. The default scale for a graphics context |
284 /// is 1.0. | 284 /// is 1.0. |
285 float GetScale(); | 285 float GetScale(); |
286 | 286 |
287 bool SetLayerTransform(float Scale, | |
wjmaclean
2016/04/13 14:47:19
Don't capitalize variable names.
alessandroa
2016/04/21 15:39:21
Done.
| |
288 const Point& Origin, | |
289 const Point& Transform); | |
287 private: | 290 private: |
288 Size size_; | 291 Size size_; |
289 }; | 292 }; |
290 | 293 |
291 } // namespace pp | 294 } // namespace pp |
292 | 295 |
293 #endif // PPAPI_CPP_GRAPHICS_2D_H_ | 296 #endif // PPAPI_CPP_GRAPHICS_2D_H_ |
OLD | NEW |