diff options
author | 2014-10-06 12:29:56 -0700 | |
---|---|---|
committer | 2014-10-06 12:29:56 -0700 | |
commit | 4302ae91b0c97993f7b659474a5fd305921cdc5e (patch) | |
tree | bab85c4316b7d205deb06e4958fd3aee266c7fed /include | |
parent | 3342d1b5a03e816b0ab1a11bf92d2da0f4b5ca4c (diff) |
add surfaceprops to SkWindow, and 'D' to toggle distancefieldfonts
BUG=skia:
Review URL: https://codereview.chromium.org/631943002
Diffstat (limited to 'include')
-rw-r--r-- | include/views/SkWindow.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/views/SkWindow.h b/include/views/SkWindow.h index 40cc5ecb31..e18aff3512 100644 --- a/include/views/SkWindow.h +++ b/include/views/SkWindow.h @@ -14,6 +14,7 @@ #include "SkRegion.h" #include "SkEvent.h" #include "SkKey.h" +#include "SkSurfaceProps.h" #include "SkTDArray.h" #ifdef SK_BUILD_FOR_WINCEx @@ -29,6 +30,11 @@ public: SkWindow(); virtual ~SkWindow(); + SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; } + void setSurfaceProps(const SkSurfaceProps& props) { + fSurfaceProps = props; + } + const SkBitmap& getBitmap() const { return fBitmap; } void setColorType(SkColorType); @@ -80,6 +86,7 @@ protected: virtual bool onSetFocusView(SkView* focus); private: + SkSurfaceProps fSurfaceProps; SkColorType fColorType; SkBitmap fBitmap; SkRegion fDirtyRgn; |