Index: include/views/SkWindow.h |
diff --git a/include/views/SkWindow.h b/include/views/SkWindow.h |
index e18aff35123237b2e65dc4388738c986de85dcbe..76a1aa5947b08c1a6b2b60a794670f1dab007879 100644 |
--- a/include/views/SkWindow.h |
+++ b/include/views/SkWindow.h |
@@ -25,11 +25,22 @@ |
class SkSurface; |
class SkOSMenu; |
+#if SK_SUPPORT_GPU |
+struct GrGLInterface; |
+class GrContext; |
+class GrRenderTarget; |
+#endif |
+ |
class SkWindow : public SkView { |
public: |
SkWindow(); |
virtual ~SkWindow(); |
+ struct AttachmentInfo { |
+ int fSampleCount; |
+ int fStencilBits; |
+ }; |
+ |
SkSurfaceProps getSurfaceProps() const { return fSurfaceProps; } |
void setSurfaceProps(const SkSurfaceProps& props) { |
fSurfaceProps = props; |
@@ -85,6 +96,11 @@ protected: |
virtual bool onGetFocusView(SkView** focus) const; |
virtual bool onSetFocusView(SkView* focus); |
+#if SK_SUPPORT_GPU |
+ GrRenderTarget* renderTarget(const AttachmentInfo& attachmentInfo, |
+ const GrGLInterface* , GrContext* grContext); |
+#endif |
+ |
private: |
SkSurfaceProps fSurfaceProps; |
SkColorType fColorType; |