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

Issue 2551733002: Converting Mus Demo to use Aura. (Closed)

Created:
4 years ago by mfomitchev
Modified:
4 years ago
Reviewers:
kylechar, sky
CC:
chromium-reviews, rjkroege, Jay Civelli
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Converting Mus Demo to use Aura. Drawing to a Layer added to the root window provided by the WindowTreeHost instead of uploading directly to the GPU ourselves. BUG=NONE Committed: https://crrev.com/698a7d3936aa4720231205775de527554d36d646 Cr-Commit-Position: refs/heads/master@{#436448}

Patch Set 1 #

Patch Set 2 : Adding ui/compositor to deps. #

Total comments: 6

Patch Set 3 : Addressing feedback. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -446 lines) Patch
M services/ui/demo/BUILD.gn View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M services/ui/demo/DEPS View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
D services/ui/demo/bitmap_uploader.h View 1 chunk +0 lines, -101 lines 0 comments Download
D services/ui/demo/bitmap_uploader.cc View 1 chunk +0 lines, -243 lines 0 comments Download
M services/ui/demo/mus_demo.h View 1 2 3 chunks +73 lines, -37 lines 0 comments Download
M services/ui/demo/mus_demo.cc View 1 2 6 chunks +101 lines, -63 lines 3 comments Download

Messages

Total messages: 32 (19 generated)
mfomitchev
4 years ago (2016-12-03 19:36:38 UTC) #8
sky
https://codereview.chromium.org/2551733002/diff/20001/services/ui/demo/mus_demo.cc File services/ui/demo/mus_demo.cc (right): https://codereview.chromium.org/2551733002/diff/20001/services/ui/demo/mus_demo.cc#newcode76 services/ui/demo/mus_demo.cc:76: void SetImage(gfx::Image image) { image_ = image; } const ...
4 years ago (2016-12-05 16:06:42 UTC) #11
mfomitchev
https://codereview.chromium.org/2551733002/diff/20001/services/ui/demo/mus_demo.cc File services/ui/demo/mus_demo.cc (right): https://codereview.chromium.org/2551733002/diff/20001/services/ui/demo/mus_demo.cc#newcode76 services/ui/demo/mus_demo.cc:76: void SetImage(gfx::Image image) { image_ = image; } On ...
4 years ago (2016-12-05 21:11:22 UTC) #14
kylechar
https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_demo.cc File services/ui/demo/mus_demo.cc (right): https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_demo.cc#newcode228 services/ui/demo/mus_demo.cc:228: // Re-initialize the bitmap Does this need to realloc ...
4 years ago (2016-12-05 22:02:30 UTC) #16
mfomitchev
https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_demo.cc File services/ui/demo/mus_demo.cc (right): https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_demo.cc#newcode228 services/ui/demo/mus_demo.cc:228: // Re-initialize the bitmap On 2016/12/05 22:02:30, kylechar wrote: ...
4 years ago (2016-12-05 23:07:14 UTC) #19
mfomitchev
4 years ago (2016-12-05 23:07:17 UTC) #20
sky
LGTM
4 years ago (2016-12-05 23:14:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2551733002/40001
4 years ago (2016-12-05 23:23:37 UTC) #23
mfomitchev
Kyle, I am going to try to land this, but if you can suggest a ...
4 years ago (2016-12-05 23:28:44 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-05 23:29:26 UTC) #28
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/698a7d3936aa4720231205775de527554d36d646 Cr-Commit-Position: refs/heads/master@{#436448}
4 years ago (2016-12-05 23:32:56 UTC) #30
kylechar
lgtm https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_demo.cc File services/ui/demo/mus_demo.cc (right): https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_demo.cc#newcode228 services/ui/demo/mus_demo.cc:228: // Re-initialize the bitmap On 2016/12/05 23:07:14, mfomitchev ...
4 years ago (2016-12-16 14:28:54 UTC) #31
chromium-reviews
4 years ago (2016-12-16 16:57:57 UTC) #32
Message was sent while issue was closed.
I see. Thanks for the information!

On Fri, Dec 16, 2016 at 9:28 AM <kylechar@chromium.org> wrote:

> lgtm
>
>
>
>
>
>
https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_de...
> File services/ui/demo/mus_demo.cc (right):
>
>
>
https://codereview.chromium.org/2551733002/diff/40001/services/ui/demo/mus_de...
> services/ui/demo/mus_demo.cc:228: // Re-initialize the bitmap
> On 2016/12/05 23:07:14, mfomitchev wrote:
> > On 2016/12/05 22:02:30, kylechar wrote:
> > > Does this need to realloc the bitmap memory every frame, even if the
> size
> > > doesn't change?
> >
> > There's probably a better way to do this, but when I was trying to
> reuse the
> > bitmap without a realloc, I was tripping over the SkASSERT in
> > notifyPixelChanged():
> >
>
>
https://cs.chromium.org/chromium/src/third_party/skia/src/core/SkBitmap.cpp?q...
>
> Just had a chance to look at this in a bit of detail. The change is
> actually better than before. We were making a copy of the SkBitmap pixel
> buffer anyways. So it had to write the pixels, allocate a pixel buffer
> then copy everything. Now it just allocates then writes, no copy
> involved. Thankfully gfx::ImageSkiaRep sets the pixel buffer as
> immutable so we don't start overwriting the data with a new frame.
>
> https://codereview.chromium.org/2551733002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698