| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 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 #ifndef SkNWayCanvas_DEFINED | 9 #ifndef SkNWayCanvas_DEFINED |
| 10 #define SkNWayCanvas_DEFINED | 10 #define SkNWayCanvas_DEFINED |
| 11 | 11 |
| 12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
| 13 #include "SkTDArray.h" | 13 #include "SkTDArray.h" |
| 14 | 14 |
| 15 class SK_API SkNWayCanvas : public SkCanvas { | 15 class SK_API SkNWayCanvas : public SkCanvas { |
| 16 public: | 16 public: |
| 17 SkNWayCanvas(int width, int height); | 17 SkNWayCanvas(int width, int height); |
| 18 virtual ~SkNWayCanvas(); | 18 virtual ~SkNWayCanvas(); |
| 19 | 19 |
| 20 virtual void addCanvas(SkCanvas*); | 20 virtual void addCanvas(SkCanvas*); |
| 21 virtual void removeCanvas(SkCanvas*); | 21 virtual void removeCanvas(SkCanvas*); |
| 22 virtual void removeAll(); | 22 virtual void removeAll(); |
| 23 | 23 |
| 24 /////////////////////////////////////////////////////////////////////////// | 24 /////////////////////////////////////////////////////////////////////////// |
| 25 // These are forwarded to the N canvases we're referencing | 25 // These are forwarded to the N canvases we're referencing |
| 26 | 26 |
| 27 #ifdef SK_SUPPORT_LEGACY_DRAWFLTER |
| 27 SkDrawFilter* setDrawFilter(SkDrawFilter*) override; | 28 SkDrawFilter* setDrawFilter(SkDrawFilter*) override; |
| 29 #endif |
| 28 | 30 |
| 29 protected: | 31 protected: |
| 30 SkTDArray<SkCanvas*> fList; | 32 SkTDArray<SkCanvas*> fList; |
| 31 | 33 |
| 32 void willSave() override; | 34 void willSave() override; |
| 33 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; | 35 SaveLayerStrategy getSaveLayerStrategy(const SaveLayerRec&) override; |
| 34 void willRestore() override; | 36 void willRestore() override; |
| 35 | 37 |
| 36 void didConcat(const SkMatrix&) override; | 38 void didConcat(const SkMatrix&) override; |
| 37 void didSetMatrix(const SkMatrix&) override; | 39 void didSetMatrix(const SkMatrix&) override; |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; | 81 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) overri
de; |
| 80 | 82 |
| 81 class Iter; | 83 class Iter; |
| 82 | 84 |
| 83 private: | 85 private: |
| 84 typedef SkCanvas INHERITED; | 86 typedef SkCanvas INHERITED; |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 | 89 |
| 88 #endif | 90 #endif |
| OLD | NEW |