OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2013 Google Inc. | |
3 * | |
4 * | |
5 * Use of this source code is governed by a BSD-style license that can be | |
6 * found in the LICENSE file. | |
7 * | |
8 */ | |
9 | |
10 #ifndef SkV8Example_DEFINED | |
11 #define SkV8Example_DEFINED | |
12 | |
13 #include "SkWindow.h" | |
14 | |
robertphillips
2013/12/03 20:49:27
I think we only need SkCanvas here.
jcgregorio
2013/12/03 21:06:44
Done.
| |
15 class GrContext; | |
16 struct GrGLInterface; | |
17 class GrRenderTarget; | |
18 class SkCanvas; | |
19 class SkV8ExampleWindow; | |
20 | |
21 | |
22 class SkV8ExampleWindow : public SkOSWindow { | |
23 public: | |
robertphillips
2013/12/03 20:49:27
Don't think we need DeviceType.
jcgregorio
2013/12/03 21:06:44
Done.
| |
24 enum DeviceType { | |
25 kRaster_DeviceType, | |
26 kGPU_DeviceType, | |
27 }; | |
28 SkV8ExampleWindow(void* hwnd); | |
29 | |
30 | |
31 protected: | |
32 virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE; | |
33 | |
34 | |
35 #ifdef SK_BUILD_FOR_WIN | |
36 virtual void onHandleInval(const SkIRect&) SK_OVERRIDE; | |
37 #endif | |
38 | |
39 private: | |
40 | |
41 typedef SkOSWindow INHERITED; | |
42 }; | |
43 | |
44 #endif | |
OLD | NEW |