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

Unified Diff: include/views/SkWindow.h

Issue 631943002: add surfaceprops to SkWindow, and 'D' to toggle distancefieldfonts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | samplecode/SampleApp.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/views/SkWindow.h
diff --git a/include/views/SkWindow.h b/include/views/SkWindow.h
index 40cc5ecb31d5a8179d549a018e5ee773a2626264..e18aff35123237b2e65dc4388738c986de85dcbe 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;
« no previous file with comments | « no previous file | samplecode/SampleApp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698