diff options
| author | fmalita <fmalita@chromium.org> | 2016-03-22 06:32:10 -0700 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-03-22 13:33:15 +0000 |
| commit | 2d743288889c7804e6431bf389cdc6084aaa49ef (patch) | |
| tree | 95409a0d222e17f9e678b97040c0567ede58c4bc /ui/compositor/paint_recorder.cc | |
| parent | c2db76301d3eb61575d807d2897da86d637cbd34 (diff) | |
| download | chromium_src-2d743288889c7804e6431bf389cdc6084aaa49ef.zip chromium_src-2d743288889c7804e6431bf389cdc6084aaa49ef.tar.gz chromium_src-2d743288889c7804e6431bf389cdc6084aaa49ef.tar.bz2 | |
Use sk_sp-based picture recording APIs
1) use SkPictureRecorder::finishRecordingAsPicture() over
endRecordingAsPicture()
2) convert to sk_sp<SkPicture> fields/params where feasible
BUG=skia:5077
R=reed@google.com,danakj@chromium.org,enne@chromium.org
TBR=pdr@chromium.org,alekseys@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1819683002
Cr-Commit-Position: refs/heads/master@{#382563}
Diffstat (limited to 'ui/compositor/paint_recorder.cc')
| -rw-r--r-- | ui/compositor/paint_recorder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc index 3ed48a7..163a7a7 100644 --- a/ui/compositor/paint_recorder.cc +++ b/ui/compositor/paint_recorder.cc @@ -43,7 +43,7 @@ PaintRecorder::~PaintRecorder() { const auto& item = context_.list_->CreateAndAppendItem<cc::DrawingDisplayItem>( bounds_in_layer_, - skia::AdoptRef(context_.recorder_->endRecordingAsPicture())); + context_.recorder_->finishRecordingAsPicture()); if (cache_) cache_->SetCache(item); } |
