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

Side by Side Diff: ppapi/cpp/graphics_2d.h

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 | « ppapi/c/ppb_graphics_2d.h ('k') | ppapi/cpp/graphics_2d.cc » ('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 #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
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,
288 const Point& origin,
289 const Point& translate);
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_
OLDNEW
« no previous file with comments | « ppapi/c/ppb_graphics_2d.h ('k') | ppapi/cpp/graphics_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698