Chromium Code Reviews| Index: experimental/SkV8Example/SkV8Example.h |
| =================================================================== |
| --- experimental/SkV8Example/SkV8Example.h (revision 0) |
| +++ experimental/SkV8Example/SkV8Example.h (revision 0) |
| @@ -0,0 +1,44 @@ |
| +/* |
| + * Copyright 2013 Google Inc. |
| + * |
| + * |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. |
| + * |
| + */ |
| + |
| +#ifndef SkV8Example_DEFINED |
| +#define SkV8Example_DEFINED |
| + |
| +#include "SkWindow.h" |
| + |
|
robertphillips
2013/12/03 20:49:27
I think we only need SkCanvas here.
jcgregorio
2013/12/03 21:06:44
Done.
|
| +class GrContext; |
| +struct GrGLInterface; |
| +class GrRenderTarget; |
| +class SkCanvas; |
| +class SkV8ExampleWindow; |
| + |
| + |
| +class SkV8ExampleWindow : public SkOSWindow { |
| +public: |
|
robertphillips
2013/12/03 20:49:27
Don't think we need DeviceType.
jcgregorio
2013/12/03 21:06:44
Done.
|
| + enum DeviceType { |
| + kRaster_DeviceType, |
| + kGPU_DeviceType, |
| + }; |
| + SkV8ExampleWindow(void* hwnd); |
| + |
| + |
| +protected: |
| + virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE; |
| + |
| + |
| +#ifdef SK_BUILD_FOR_WIN |
| + virtual void onHandleInval(const SkIRect&) SK_OVERRIDE; |
| +#endif |
| + |
| +private: |
| + |
| + typedef SkOSWindow INHERITED; |
| +}; |
| + |
| +#endif |