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

Unified Diff: ppapi/cpp/dev/graphics_2d_dev.h

Issue 10832428: Add a query function for the scaling feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fixed Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/cpp/dev/graphics_2d_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/graphics_2d_dev.h
diff --git a/ppapi/cpp/dev/graphics_2d_dev.h b/ppapi/cpp/dev/graphics_2d_dev.h
index 2ebc06e60f43fc6eef6593d2b06adee628dabee6..3dc8c7190ae8cbc1341a12908f1ff3c0a4a16ff4 100644
--- a/ppapi/cpp/dev/graphics_2d_dev.h
+++ b/ppapi/cpp/dev/graphics_2d_dev.h
@@ -11,17 +11,20 @@ namespace pp {
// Graphics2DDev is a version of Graphics2D that exposes under-development APIs
// for HiDPI
-class Graphics2DDev : public Graphics2D {
+class Graphics2D_Dev : public Graphics2D {
Josh Horwich 2012/08/21 23:53:29 Just a reminder that we'll want to quickly rev cli
public:
/// Default constructor for creating an is_null()
- /// <code>Graphics2DDev</code> object.
- Graphics2DDev() : Graphics2D() {}
+ /// <code>Graphics2D_Dev</code> object.
+ Graphics2D_Dev() : Graphics2D() {}
// Constructor for creating a <code>Graphics2DDev</code> object from an
// existing <code>Graphics2D</code> object.
- Graphics2DDev(const Graphics2D& other) : Graphics2D(other) {}
+ Graphics2D_Dev(const Graphics2D& other) : Graphics2D(other) {}
- virtual ~Graphics2DDev() {}
+ virtual ~Graphics2D_Dev() {}
+
+ /// Returns true if SetScale and GetScale are supported. False if not.
+ static bool SupportsScale();
/// SetScale() sets the scale factor that will be applied when painting the
/// graphics context onto the output device. Typically, if rendering at device
« no previous file with comments | « no previous file | ppapi/cpp/dev/graphics_2d_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698