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

Unified Diff: src/record/SkRecording.cpp

Issue 231853006: SkRecord: turn on cull annotation pass in public API. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/record/SkRecording.h ('k') | tools/bench_playback.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/record/SkRecording.cpp
diff --git a/src/record/SkRecording.cpp b/src/record/SkRecording.cpp
index 290339d16b0ee672487e498649676b57915d81fb..2c59c8a217174040b6da32c69c29d79b30ca806d 100644
--- a/src/record/SkRecording.cpp
+++ b/src/record/SkRecording.cpp
@@ -8,8 +8,9 @@
#include "SkRecording.h"
#include "SkRecord.h"
-#include "SkRecorder.h"
+#include "SkRecordCulling.h"
#include "SkRecordDraw.h"
+#include "SkRecorder.h"
namespace EXPERIMENTAL {
@@ -35,7 +36,8 @@ SkRecording::SkRecording(int width, int height) {
}
/*static*/ const SkPlayback* SkRecording::Delete(SkRecording* recording) {
- const SkRecord* record = recording->fRecord;
+ SkRecord* record = recording->fRecord;
+ SkRecordAnnotateCullingPairs(record);
SkDELETE(recording);
return SkNEW_ARGS(SkPlayback, (record));
}
« no previous file with comments | « include/record/SkRecording.h ('k') | tools/bench_playback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698