diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-14 20:33:05 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-14 20:33:05 +0000 |
commit | b17a24fedbec365827b92eb3b4021fd251ba9cb1 (patch) | |
tree | 3328eaea76d77932bb36da33cc811c834bf3526e /src | |
parent | 06aca01c23344a6ed3640c59f425f2459b86ef85 (diff) |
SkRecord: turn on cull annotation pass in public API.
Also, switch Skia internal tools over to use the public headers where
possible. Where it's not, the tools -Isrc/record explicitly now, and
if it's not obvious, note why they don't use SkRecording.h.
BUG=skia:2378
R=reed@google.com, mtklein@google.com, fmalita@chromium.org
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/231853006
git-svn-id: http://skia.googlecode.com/svn/trunk@14191 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/record/SkRecording.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/record/SkRecording.cpp b/src/record/SkRecording.cpp index 290339d16b..2c59c8a217 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)); } |