OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #include "SkCanvas.h" | 7 #include "SkCanvas.h" |
9 #include "SkColor.h" | 8 #include "SkColor.h" |
10 #include "SkReadBuffer.h" | 9 #include "SkReadBuffer.h" |
11 #include "SkWriteBuffer.h" | 10 #include "SkWriteBuffer.h" |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 SkLayerDrawLooper* looper = new SkLayerDrawLooper; | 347 SkLayerDrawLooper* looper = new SkLayerDrawLooper; |
349 looper->fCount = fCount; | 348 looper->fCount = fCount; |
350 looper->fRecs = fRecs; | 349 looper->fRecs = fRecs; |
351 | 350 |
352 fCount = 0; | 351 fCount = 0; |
353 fRecs = nullptr; | 352 fRecs = nullptr; |
354 fTopRec = nullptr; | 353 fTopRec = nullptr; |
355 | 354 |
356 return sk_sp<SkDrawLooper>(looper); | 355 return sk_sp<SkDrawLooper>(looper); |
357 } | 356 } |
OLD | NEW |