| * 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 |
| class SkV8ExampleWindow : public SkOSWindow { |
| SkV8ExampleWindow(void* hwnd, JsContext* canvas); |
| virtual ~SkV8ExampleWindow(); |
| virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE; |
| virtual void onSizeChange() SK_OVERRIDE; |
| virtual SkCanvas* createCanvas() SK_OVERRIDE; |
| virtual void onHandleInval(const SkIRect&) SK_OVERRIDE; |
| void windowSizeChanged(); |
| typedef SkOSWindow INHERITED; |
| const GrGLInterface* fCurIntf; |
| GrRenderTarget* fCurRenderTarget; |