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

Issue 25596002: aura: Use Layer::SetShowPaintedContent to stop showing external content (Closed)

Created:
7 years, 2 months ago by danakj
Modified:
7 years, 2 months ago
Reviewers:
sadrul, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, Ian Vollick, tfarina, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, cc-bugs_chromium.org, miu+watch_chromium.org, jbauman
Visibility:
Public.

Description

aura: Use Layer::SetShowPaintedContent to stop showing external content Currently we use SetExternalTexture(NULL) or SetDelegatedFrame(NULL) to switch back to showing painted content. This is kinda indirect, and won't play nicely when SetExternalTexture() is removed, and when we use a FrameProvider for delegated frames instead of pushing them to the ui::Layer directly one at a time. Instead, add SetShowPaintedContent() to switch to a content layer, and disallow setting a NULL/empty texture or delegated frame. Also View::SetExternalTexture() is not used, remove it so it doesn't have to think about this change. R=piman,sadrul BUG=263069 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226502

Patch Set 1 #

Patch Set 2 : layer-showpaintedcontent: #

Total comments: 4

Patch Set 3 : layer-showpaintedcontent: nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -72 lines) Patch
M content/browser/aura/reflector_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 5 chunks +19 lines, -11 lines 0 comments Download
M ui/aura/bench/bench_main.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 chunks +32 lines, -35 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M ui/views/view.h View 1 chunk +0 lines, -9 lines 0 comments Download
M ui/views/view.cc View 1 chunk +0 lines, -15 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
danakj
sadrul: ui/aura ui/views piman: the rest
7 years, 2 months ago (2013-10-01 20:06:52 UTC) #1
sadrul
aura/ views/ lgtm
7 years, 2 months ago (2013-10-01 20:38:59 UTC) #2
piman
lgtm https://codereview.chromium.org/25596002/diff/9001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/25596002/diff/9001/ui/compositor/layer.cc#newcode554 ui/compositor/layer.cc:554: scoped_refptr<ui::Texture> old_texture = texture_; nit: I don't think ...
7 years, 2 months ago (2013-10-01 21:21:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/25596002/18001
7 years, 2 months ago (2013-10-01 22:35:04 UTC) #4
danakj
https://codereview.chromium.org/25596002/diff/9001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/25596002/diff/9001/ui/compositor/layer.cc#newcode554 ui/compositor/layer.cc:554: scoped_refptr<ui::Texture> old_texture = texture_; On 2013/10/01 21:21:45, piman wrote: ...
7 years, 2 months ago (2013-10-01 22:37:19 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/25596002/18001
7 years, 2 months ago (2013-10-01 22:45:41 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 2 months ago (2013-10-01 23:44:58 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/25596002/18001
7 years, 2 months ago (2013-10-02 16:37:47 UTC) #8
commit-bot: I haz the power
7 years, 2 months ago (2013-10-02 18:08:44 UTC) #9
Message was sent while issue was closed.
Change committed as 226502

Powered by Google App Engine
This is Rietveld 408576698