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

Side by Side Diff: src/core/SkPictureRecorder.cpp

Issue 540963002: Change SkPicture::draw to playback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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
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 #include "SkBBoxHierarchyRecord.h" 8 #include "SkBBoxHierarchyRecord.h"
9 #include "SkPictureRecord.h" 9 #include "SkPictureRecord.h"
10 #include "SkPictureRecorder.h" 10 #include "SkPictureRecorder.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 101 }
102 102
103 if (NULL != fRecord.get()) { 103 if (NULL != fRecord.get()) {
104 SkRecordDraw(*fRecord, canvas, NULL/*bbh*/, NULL/*callback*/); 104 SkRecordDraw(*fRecord, canvas, NULL/*bbh*/, NULL/*callback*/);
105 } 105 }
106 106
107 if (NULL != fPictureRecord.get()) { 107 if (NULL != fPictureRecord.get()) {
108 const bool deepCopyOps = true; 108 const bool deepCopyOps = true;
109 SkPicture picture(fCullWidth, fCullHeight, 109 SkPicture picture(fCullWidth, fCullHeight,
110 *fPictureRecord.get(), deepCopyOps); 110 *fPictureRecord.get(), deepCopyOps);
111 picture.draw(canvas); 111 picture.playback(canvas);
112 } 112 }
113 } 113 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698