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

Side by Side Diff: experimental/SkV8Example/SkV8Example.h

Issue 673223002: Get SkV8Example running again. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « experimental/SkV8Example/Path2D.cpp ('k') | experimental/SkV8Example/SkV8Example.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 * 7 *
8 */ 8 */
9 9
10 #ifndef SkV8Example_DEFINED 10 #ifndef SkV8Example_DEFINED
(...skipping 11 matching lines...) Expand all
22 class SkV8ExampleWindow : public SkOSWindow { 22 class SkV8ExampleWindow : public SkOSWindow {
23 public: 23 public:
24 SkV8ExampleWindow(void* hwnd, JsContext* canvas); 24 SkV8ExampleWindow(void* hwnd, JsContext* canvas);
25 virtual ~SkV8ExampleWindow(); 25 virtual ~SkV8ExampleWindow();
26 26
27 protected: 27 protected:
28 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE; 28 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE;
29 virtual void onSizeChange() SK_OVERRIDE; 29 virtual void onSizeChange() SK_OVERRIDE;
30 30
31 #if SK_SUPPORT_GPU 31 #if SK_SUPPORT_GPU
32 virtual SkCanvas* createCanvas() SK_OVERRIDE; 32 virtual SkSurface* createSurface() SK_OVERRIDE;
33 #endif 33 #endif
34 34
35 #ifdef SK_BUILD_FOR_WIN 35 #ifdef SK_BUILD_FOR_WIN
36 virtual void onHandleInval(const SkIRect&) SK_OVERRIDE; 36 virtual void onHandleInval(const SkIRect&) SK_OVERRIDE;
37 #endif 37 #endif
38 38
39 void windowSizeChanged(); 39 void windowSizeChanged();
40 40
41 private: 41 private:
42 typedef SkOSWindow INHERITED; 42 typedef SkOSWindow INHERITED;
43 JsContext* fJsContext; 43 JsContext* fJsContext;
44 44
45 #if SK_SUPPORT_GPU 45 #if SK_SUPPORT_GPU
46 GrContext* fCurContext; 46 GrContext* fCurContext;
47 const GrGLInterface* fCurIntf; 47 const GrGLInterface* fCurIntf;
48 GrRenderTarget* fCurRenderTarget; 48 GrRenderTarget* fCurRenderTarget;
49 SkSurface* fCurSurface; 49 SkSurface* fCurSurface;
50 #endif 50 #endif
51 }; 51 };
52 52
53 #endif 53 #endif
OLDNEW
« no previous file with comments | « experimental/SkV8Example/Path2D.cpp ('k') | experimental/SkV8Example/SkV8Example.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698