| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 struct DrawData { | 59 struct DrawData { |
| 60 SkCanvas* fCanvas; // reffed | 60 SkCanvas* fCanvas; // reffed |
| 61 const SkPicture* fPicture; // reffed | 61 const SkPicture* fPicture; // reffed |
| 62 SkMatrix fMatrix; | 62 SkMatrix fMatrix; |
| 63 SkPaint* fPaint; // owned | 63 SkPaint* fPaint; // owned |
| 64 | 64 |
| 65 void init(SkCanvas*, const SkPicture*, const SkMatrix*, const SkPaint*); | 65 void init(SkCanvas*, const SkPicture*, const SkMatrix*, const SkPaint*); |
| 66 void draw(); | 66 void draw(); |
| 67 | 67 |
| 68 static void Reset(SkTDArray<DrawData>&); | 68 static void Reset(SkTDArray<DrawData>&); |
| 69 | |
| 70 static void Draw(DrawData* d) { d->draw(); } | |
| 71 }; | 69 }; |
| 72 | 70 |
| 73 SkTDArray<DrawData> fThreadSafeDrawData; | 71 SkTDArray<DrawData> fThreadSafeDrawData; |
| 74 SkTDArray<DrawData> fGPUDrawData; | 72 SkTDArray<DrawData> fGPUDrawData; |
| 75 }; | 73 }; |
| 76 | 74 |
| 77 #endif | 75 #endif |
| OLD | NEW |