| OLD | NEW |
| 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 SkExample_DEFINED | 10 #ifndef SkExample_DEFINED |
| 11 #define SkExample_DEFINED | 11 #define SkExample_DEFINED |
| 12 | 12 |
| 13 #include "SkWindow.h" | 13 #include "SkWindow.h" |
| 14 #include "SkTRegistry.h" | 14 #include "SkTRegistry.h" |
| 15 | 15 |
| 16 class GrContext; | 16 class GrContext; |
| 17 struct GrGLInterface; | 17 struct GrGLInterface; |
| 18 class GrRenderTarget; | 18 class GrRenderTarget; |
| 19 class SkCanvas; | 19 class SkCanvas; |
| 20 class SkExampleWindow; | 20 class SkExampleWindow; |
| 21 | 21 |
| 22 class SkExample : public SkNoncopyable { | 22 class SkExample : SkNoncopyable { |
| 23 public: | 23 public: |
| 24 SkExample(SkExampleWindow* window) : fWindow(window) {} | 24 SkExample(SkExampleWindow* window) : fWindow(window) {} |
| 25 | 25 |
| 26 virtual ~SkExample() {} | 26 virtual ~SkExample() {} |
| 27 | 27 |
| 28 // Your class should override this method to do its thing. | 28 // Your class should override this method to do its thing. |
| 29 virtual void draw(SkCanvas* canvas) = 0; | 29 virtual void draw(SkCanvas* canvas) = 0; |
| 30 | 30 |
| 31 SkString getName() { return fName; }; | 31 SkString getName() { return fName; }; |
| 32 // Use this public registry to tell the world about your sample. | 32 // Use this public registry to tell the world about your sample. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 const SkExample::Registry* fRegistry; | 73 const SkExample::Registry* fRegistry; |
| 74 GrContext* fContext; | 74 GrContext* fContext; |
| 75 GrRenderTarget* fRenderTarget; | 75 GrRenderTarget* fRenderTarget; |
| 76 AttachmentInfo fAttachmentInfo; | 76 AttachmentInfo fAttachmentInfo; |
| 77 const GrGLInterface* fInterface; | 77 const GrGLInterface* fInterface; |
| 78 | 78 |
| 79 typedef SkOSWindow INHERITED; | 79 typedef SkOSWindow INHERITED; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 #endif | 82 #endif |
| OLD | NEW |