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

Issue 854303002: Sky should use an SkPicture when drawing (Closed)

Created:
5 years, 11 months ago by abarth-chromium
Modified:
5 years, 11 months ago
Reviewers:
jamesr, eseidel1
CC:
eseidel, esprehn, mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Sky should use an SkPicture when drawing This CL teaches the Sky compositor to record an SkPicture instead of just drawing in immediate mode. Using an SkPicture will let us experiment with various optimizations in Skia that preprocess the SkPicture before translating the Skia commands to GL commands. This CL also refactors the "display delegate" system now that we can hand off an SkPicture to a rasterization backend. The new design requires fewer backpointers and removes the static display delegate factory. R=eseidel@google.com Committed: https://chromium.googlesource.com/external/mojo/+/20f9545776ad59ce5d7425f4fbbef9d2e4cd9b95

Patch Set 1 #

Total comments: 5

Patch Set 2 : fixes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -268 lines) Patch
M examples/sky_compositor_app/sky_compositor_app.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M sky/compositor/BUILD.gn View 2 chunks +6 lines, -6 lines 0 comments Download
D sky/compositor/display_delegate.h View 1 chunk +0 lines, -43 lines 0 comments Download
D sky/compositor/display_delegate.cc View 1 chunk +0 lines, -24 lines 0 comments Download
D sky/compositor/display_delegate_bitmap.h View 1 chunk +0 lines, -33 lines 0 comments Download
D sky/compositor/display_delegate_bitmap.cc View 1 chunk +0 lines, -39 lines 0 comments Download
D sky/compositor/display_delegate_ganesh.h View 1 chunk +0 lines, -31 lines 0 comments Download
D sky/compositor/display_delegate_ganesh.cc View 1 chunk +0 lines, -27 lines 0 comments Download
M sky/compositor/layer.h View 2 chunks +9 lines, -5 lines 0 comments Download
M sky/compositor/layer.cc View 2 chunks +16 lines, -16 lines 0 comments Download
M sky/compositor/layer_host.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sky/compositor/layer_host.cc View 1 chunk +0 lines, -5 lines 0 comments Download
A sky/compositor/rasterizer.h View 1 chunk +28 lines, -0 lines 0 comments Download
A + sky/compositor/rasterizer.cc View 1 chunk +9 lines, -3 lines 0 comments Download
A sky/compositor/rasterizer_bitmap.h View 1 chunk +31 lines, -0 lines 0 comments Download
A + sky/compositor/rasterizer_bitmap.cc View 1 chunk +16 lines, -12 lines 0 comments Download
A sky/compositor/rasterizer_ganesh.h View 1 chunk +28 lines, -0 lines 0 comments Download
A sky/compositor/rasterizer_ganesh.cc View 1 1 chunk +38 lines, -0 lines 0 comments Download
M sky/viewer/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M sky/viewer/document_view.h View 3 chunks +6 lines, -1 line 0 comments Download
M sky/viewer/document_view.cc View 1 4 chunks +22 lines, -5 lines 2 comments Download
A sky/viewer/runtime_flags.h View 1 1 chunk +27 lines, -0 lines 0 comments Download
A sky/viewer/runtime_flags.cc View 1 1 chunk +32 lines, -0 lines 0 comments Download
M sky/viewer/viewer.cc View 2 chunks +2 lines, -12 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
abarth-chromium
5 years, 11 months ago (2015-01-17 18:43:02 UTC) #1
eseidel1
lgtm james is probably a better reviewer for some of this. https://codereview.chromium.org/854303002/diff/1/sky/compositor/rasterizer_ganesh.cc File sky/compositor/rasterizer_ganesh.cc (right): ...
5 years, 11 months ago (2015-01-20 02:04:03 UTC) #3
abarth-chromium
https://codereview.chromium.org/854303002/diff/1/sky/compositor/rasterizer_ganesh.cc File sky/compositor/rasterizer_ganesh.cc (right): https://codereview.chromium.org/854303002/diff/1/sky/compositor/rasterizer_ganesh.cc#newcode26 sky/compositor/rasterizer_ganesh.cc:26: gfx::Size size(cull_rect.width(), cull_rect.height()); On 2015/01/20 at 02:04:03, eseidel1 wrote: ...
5 years, 11 months ago (2015-01-20 02:47:38 UTC) #4
abarth-chromium
Committed patchset #2 (id:20001) manually as 20f9545776ad59ce5d7425f4fbbef9d2e4cd9b95 (presubmit successful).
5 years, 11 months ago (2015-01-20 02:47:57 UTC) #5
jamesr
https://codereview.chromium.org/854303002/diff/20001/sky/viewer/document_view.cc File sky/viewer/document_view.cc (right): https://codereview.chromium.org/854303002/diff/20001/sky/viewer/document_view.cc#newcode159 sky/viewer/document_view.cc:159: DCHECK(RuntimeFlags::Get().testing()) << "Requires testing runtime flag"; fyi this check ...
5 years, 11 months ago (2015-01-22 01:20:45 UTC) #7
abarth-chromium
https://codereview.chromium.org/854303002/diff/20001/sky/viewer/document_view.cc File sky/viewer/document_view.cc (right): https://codereview.chromium.org/854303002/diff/20001/sky/viewer/document_view.cc#newcode159 sky/viewer/document_view.cc:159: DCHECK(RuntimeFlags::Get().testing()) << "Requires testing runtime flag"; On 2015/01/22 at ...
5 years, 11 months ago (2015-01-22 02:05:33 UTC) #8
abarth-chromium
5 years, 11 months ago (2015-01-22 02:18:43 UTC) #9
Message was sent while issue was closed.
Fix in https://codereview.chromium.org/866653002

Powered by Google App Engine
This is Rietveld 408576698