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

Unified Diff: include/views/SkWindow.h

Issue 890873003: update example (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove multiple example cruft Created 5 years, 11 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 | « include/views/SkOSWindow_iOS.h ('k') | samplecode/SampleApp.cpp » ('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 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;
« no previous file with comments | « include/views/SkOSWindow_iOS.h ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698