diff options
author | Robert Phillips <robertphillips@google.com> | 2017-12-04 07:52:57 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-04 14:00:14 +0000 |
commit | 8458a2807b4a7220c9849f8032dc611438818641 (patch) | |
tree | 0df3c0e936ac88c986f413fc1873fd754b4c1de2 /src/core | |
parent | 0c56d47b7e288eacb5dae3560f478b0d8a4896a3 (diff) |
Add unit test for SkDeferredDisplayLists
Change-Id: I015094145cb0af6cfe368c570a5d5280c11c8f28
Reviewed-on: https://skia-review.googlesource.com/78660
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkDeferredDisplayListRecorder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkDeferredDisplayListRecorder.cpp b/src/core/SkDeferredDisplayListRecorder.cpp index 18e516ab31..f6981e7535 100644 --- a/src/core/SkDeferredDisplayListRecorder.cpp +++ b/src/core/SkDeferredDisplayListRecorder.cpp @@ -43,6 +43,7 @@ std::unique_ptr<SkDeferredDisplayList> SkDeferredDisplayListRecorder::detach() { // Placeholder. Ultimately, the SkSurface_Gpu will pass the wrapped opLists to its // renderTargetContext. -void SkDeferredDisplayList::draw(SkSurface* surface) { +bool SkDeferredDisplayList::draw(SkSurface* surface) { surface->getCanvas()->drawImage(fImage.get(), 0, 0); + return true; } |