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

Issue 740923002: Add a simple compositor for Sky (Closed)

Created:
6 years, 1 month ago by abarth-chromium
Modified:
6 years ago
Reviewers:
jamesr, eseidel, rafaelw, ojan
CC:
esprehn, mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Add a simple compositor for Sky Currently we're only able to put up one frame and we can have only one layer, but this is enough to draw a green circle in a sample app. A future CL will wire this up to Sky and add support for drawing a second frame. R=eseidel@chromium.org, ojan@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/d9134df4b33b56c40db5fc5445945bb37820b33f

Patch Set 1 #

Patch Set 2 : Draws a circle #

Patch Set 3 : git cl format #

Total comments: 21

Patch Set 4 : Address reviewer comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+787 lines, -34 lines) Patch
M examples/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M examples/ganesh_app/texture_uploader.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
A + examples/sky_compositor_app/BUILD.gn View 1 1 chunk +8 lines, -7 lines 0 comments Download
A + examples/sky_compositor_app/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A examples/sky_compositor_app/sky_compositor_app.cc View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
M mojo/converters/geometry/geometry_type_converters.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/converters/geometry/geometry_type_converters.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
A + sky/compositor/BUILD.gn View 1 1 chunk +16 lines, -17 lines 1 comment Download
A sky/compositor/layer.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A sky/compositor/layer.cc View 1 1 chunk +47 lines, -0 lines 0 comments Download
A sky/compositor/layer_client.h View 1 chunk +26 lines, -0 lines 0 comments Download
A + sky/compositor/layer_client.cc View 1 1 chunk +5 lines, -4 lines 0 comments Download
A sky/compositor/layer_host.h View 1 1 chunk +64 lines, -0 lines 0 comments Download
A sky/compositor/layer_host.cc View 1 1 chunk +101 lines, -0 lines 0 comments Download
A sky/compositor/layer_host_client.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
A + sky/compositor/layer_host_client.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
A sky/compositor/resource_manager.h View 1 1 chunk +45 lines, -0 lines 0 comments Download
A sky/compositor/resource_manager.cc View 1 1 chunk +85 lines, -0 lines 0 comments Download
A sky/compositor/surface_allocator.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
A sky/compositor/surface_allocator.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A sky/compositor/surface_holder.h View 1 1 chunk +63 lines, -0 lines 0 comments Download
A sky/compositor/surface_holder.cc View 1 1 chunk +73 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
abarth-chromium
6 years, 1 month ago (2014-11-20 20:22:17 UTC) #2
eseidel
lgtm Honestly this is really ugly. I'm sure we can do better, but a lot ...
6 years, 1 month ago (2014-11-20 20:40:32 UTC) #4
abarth-chromium
https://codereview.chromium.org/740923002/diff/40001/examples/sky_compositor_app/sky_compositor_app.cc File examples/sky_compositor_app/sky_compositor_app.cc (right): https://codereview.chromium.org/740923002/diff/40001/examples/sky_compositor_app/sky_compositor_app.cc#newcode22 examples/sky_compositor_app/sky_compositor_app.cc:22: gfx::Size ToSize(const mojo::Rect& rect) { On 2014/11/20 at 20:40:31, ...
6 years, 1 month ago (2014-11-20 20:47:57 UTC) #5
ojan
lgtm as well https://codereview.chromium.org/740923002/diff/40001/examples/sky_compositor_app/sky_compositor_app.cc File examples/sky_compositor_app/sky_compositor_app.cc (right): https://codereview.chromium.org/740923002/diff/40001/examples/sky_compositor_app/sky_compositor_app.cc#newcode72 examples/sky_compositor_app/sky_compositor_app.cc:72: // sky::LayerHostClient // sky::LayerClient ? https://codereview.chromium.org/740923002/diff/40001/sky/compositor/layer_client.cc ...
6 years, 1 month ago (2014-11-20 21:25:47 UTC) #6
eseidel
https://codereview.chromium.org/740923002/diff/40001/sky/compositor/layer_client.cc File sky/compositor/layer_client.cc (right): https://codereview.chromium.org/740923002/diff/40001/sky/compositor/layer_client.cc#newcode9 sky/compositor/layer_client.cc:9: LayerClient::~LayerClient() { On 2014/11/20 21:25:46, ojan wrote: > Does ...
6 years, 1 month ago (2014-11-20 21:35:09 UTC) #7
abarth-chromium
https://codereview.chromium.org/740923002/diff/40001/examples/sky_compositor_app/sky_compositor_app.cc File examples/sky_compositor_app/sky_compositor_app.cc (right): https://codereview.chromium.org/740923002/diff/40001/examples/sky_compositor_app/sky_compositor_app.cc#newcode59 examples/sky_compositor_app/sky_compositor_app.cc:59: base::MessageLoop::current()->Quit(); On 2014/11/20 at 20:40:31, eseidel wrote: > AppManager::Terminate ...
6 years, 1 month ago (2014-11-20 22:07:20 UTC) #8
abarth-chromium
Committed patchset #4 (id:60001) manually as d9134df4b33b56c40db5fc5445945bb37820b33f (presubmit successful).
6 years, 1 month ago (2014-11-20 22:10:44 UTC) #9
jamesr
https://codereview.chromium.org/740923002/diff/60001/sky/compositor/BUILD.gn File sky/compositor/BUILD.gn (right): https://codereview.chromium.org/740923002/diff/60001/sky/compositor/BUILD.gn#newcode5 sky/compositor/BUILD.gn:5: static_library("compositor") { static_library is nearly never what you want, ...
6 years ago (2014-12-02 05:43:48 UTC) #10
abarth-chromium
Will fix
6 years ago (2014-12-02 06:30:12 UTC) #11
abarth-chromium
6 years ago (2014-12-02 06:34:03 UTC) #12
Message was sent while issue was closed.
Fix in https://codereview.chromium.org/766053007

Powered by Google App Engine
This is Rietveld 408576698