| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkMultiPictureDraw_DEFINED | 8 #ifndef SkMultiPictureDraw_DEFINED |
| 9 #define SkMultiPictureDraw_DEFINED | 9 #define SkMultiPictureDraw_DEFINED |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 */ | 49 */ |
| 50 void draw(); | 50 void draw(); |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * Abandon all buffered draws and reset to the initial state. | 53 * Abandon all buffered draws and reset to the initial state. |
| 54 */ | 54 */ |
| 55 void reset(); | 55 void reset(); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 struct DrawData { | 58 struct DrawData { |
| 59 SkCanvas* canvas; // reffed | 59 SkCanvas* fCanvas; // reffed |
| 60 const SkPicture* picture; // reffed | 60 const SkPicture* fPicture; // reffed |
| 61 SkMatrix matrix; | 61 SkMatrix fMatrix; |
| 62 SkPaint* paint; // owned | 62 SkPaint* fPaint; // owned |
| 63 |
| 64 void init(SkCanvas*, const SkPicture*, const SkMatrix*, const SkPaint*); |
| 65 |
| 66 static void Reset(SkTDArray<DrawData>&); |
| 63 }; | 67 }; |
| 64 | 68 |
| 65 SkTDArray<DrawData> fDrawData; | 69 SkTDArray<DrawData> fThreadSafeDrawData; |
| 70 SkTDArray<DrawData> fGPUDrawData; |
| 66 }; | 71 }; |
| 67 | 72 |
| 68 #endif | 73 #endif |
| OLD | NEW |