Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: include/core/SkMultiPictureDraw.h

Issue 1184373003: Add sk_parallel_for() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | samplecode/SamplePathFuzz.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | samplecode/SamplePathFuzz.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698