OLD | NEW |
1 #ifndef EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ | 1 /* |
2 #define EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ | 2 * Copyright 2013 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkNulCanvas_DEFINED |
| 9 #define SkNulCanvas_DEFINED |
3 | 10 |
4 #include "SkCanvas.h" | 11 #include "SkCanvas.h" |
5 | 12 |
6 class SK_API SkNulCanvas : public SkCanvas { | 13 class SK_API SkNulCanvas : public SkCanvas { |
7 public: | 14 public: |
8 SK_DECLARE_INST_COUNT(SkNulCanvas); | 15 SK_DECLARE_INST_COUNT(SkNulCanvas); |
9 | 16 |
10 SkNulCanvas() {} | 17 SkNulCanvas() {} |
11 explicit SkNulCanvas(SkDevice* device) : SkCanvas(device) {} | 18 explicit SkNulCanvas(SkDevice* device) : SkCanvas(device) {} |
12 | 19 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) {return NULL;} | 88 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) {return NULL;} |
82 | 89 |
83 protected: | 90 protected: |
84 virtual SkCanvas* canvasForDrawIter() {return NULL;} | 91 virtual SkCanvas* canvasForDrawIter() {return NULL;} |
85 virtual SkDevice* setDevice(SkDevice* device) {return NULL;} | 92 virtual SkDevice* setDevice(SkDevice* device) {return NULL;} |
86 | 93 |
87 private: | 94 private: |
88 typedef SkCanvas INHERITED; | 95 typedef SkCanvas INHERITED; |
89 }; | 96 }; |
90 | 97 |
91 #endif // EXPERIMENTAL_PDFVIEWER_SKNULCANVAS_H_ | 98 #endif // SkNulCanvas_DEFINED |
OLD | NEW |