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

Unified Diff: experimental/SkV8Example/SkV8Example.h

Issue 122453003: Add GPU, controlled via command line flag. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 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 | « no previous file | experimental/SkV8Example/SkV8Example.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/SkV8Example/SkV8Example.h
diff --git a/experimental/SkV8Example/SkV8Example.h b/experimental/SkV8Example/SkV8Example.h
index 770597f55d9ee2565a09a263b595387881d80d68..3d87d7add58aafff350cae06f9087efee830849d 100644
--- a/experimental/SkV8Example/SkV8Example.h
+++ b/experimental/SkV8Example/SkV8Example.h
@@ -12,6 +12,10 @@
#include "SkWindow.h"
+class GrContext;
+class GrGLInterface;
+class GrRenderTarget;
+
class JsContext;
class SkV8ExampleWindow : public SkOSWindow {
@@ -20,14 +24,27 @@ public:
protected:
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE;
+ virtual void onSizeChange() SK_OVERRIDE;
+
+#if SK_SUPPORT_GPU
+ virtual SkCanvas* createCanvas() SK_OVERRIDE;
+#endif
#ifdef SK_BUILD_FOR_WIN
virtual void onHandleInval(const SkIRect&) SK_OVERRIDE;
#endif
+ void windowSizeChanged();
+
private:
typedef SkOSWindow INHERITED;
JsContext* fJsContext;
+
+#if SK_SUPPORT_GPU
+ GrContext* fCurContext;
+ const GrGLInterface* fCurIntf;
+ GrRenderTarget* fCurRenderTarget;
+#endif
};
#endif
« no previous file with comments | « no previous file | experimental/SkV8Example/SkV8Example.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698