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

Issue 21026005: aura: Remove CreateOffscreenContext from ui::ContextFactory. (Closed)

Created:
7 years, 4 months ago by danakj
Modified:
7 years, 4 months ago
CC:
chromium-reviews, jonathan.backer, Ian Vollick, jam, apatrick_chromium, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, boliu, no sievers
Visibility:
Public.

Description

aura: Remove CreateOffscreenContext from ui::ContextFactory. Drop this method since it is not needed in the interface anymore. In order to do this, make the cc::FakeContextProvider externally available so ui::Compositor can make use of it for tests, and revamp it to make it slightly more general. Depends on: https://codereview.chromium.org/22293003/ R=jbauman, piman BUG=258625 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=217202

Patch Set 1 #

Patch Set 2 : offscreencontext: #

Patch Set 3 : offscreencontext: rebase #

Total comments: 3

Patch Set 4 : offscreencontext: rebased #

Patch Set 5 : offscreencontext: CPInProcess #

Patch Set 6 : offscreencontext: rebase #

Patch Set 7 : offscreencontext: rebase #

Patch Set 8 : offscreencontext: Use ContextProvider in aura bench #

Patch Set 9 : offscreencontext: NON_EXPORTED_BASE #

Total comments: 2

Patch Set 10 : offscreencontext: clang-format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -401 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
A + cc/debug/fake_context_provider.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -6 lines 0 comments Download
A + cc/debug/fake_context_provider.cc View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
D cc/test/fake_context_provider.h View 1 2 3 1 chunk +0 lines, -60 lines 0 comments Download
D cc/test/fake_context_provider.cc View 1 2 3 1 chunk +0 lines, -93 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M cc/test/fake_layer_tree_host_client.cc View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 2 chunks +11 lines, -8 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M content/browser/aura/gpu_process_transport_factory.h View 1 2 3 4 5 3 chunks +5 lines, -9 lines 0 comments Download
M content/browser/aura/gpu_process_transport_factory.cc View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M ui/aura/bench/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/bench/bench_main.cc View 1 2 3 4 5 6 7 8 9 5 chunks +21 lines, -17 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 7 chunks +13 lines, -18 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 11 chunks +27 lines, -39 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
D ui/compositor/context_provider_from_context_factory.h View 1 chunk +0 lines, -45 lines 0 comments Download
D ui/compositor/context_provider_from_context_factory.cc View 1 chunk +0 lines, -76 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
danakj
7 years, 4 months ago (2013-07-30 19:36:02 UTC) #1
piman
https://codereview.chromium.org/21026005/diff/5001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/21026005/diff/5001/ui/compositor/compositor.cc#newcode161 ui/compositor/compositor.cc:161: offscreen)); If we don't make it create the GrContext ...
7 years, 4 months ago (2013-07-30 20:15:10 UTC) #2
danakj
https://codereview.chromium.org/21026005/diff/5001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/21026005/diff/5001/ui/compositor/compositor.cc#newcode161 ui/compositor/compositor.cc:161: offscreen)); On 2013/07/30 20:15:10, piman wrote: > If we ...
7 years, 4 months ago (2013-07-30 20:32:08 UTC) #3
piman
https://codereview.chromium.org/21026005/diff/5001/ui/compositor/compositor.cc File ui/compositor/compositor.cc (right): https://codereview.chromium.org/21026005/diff/5001/ui/compositor/compositor.cc#newcode161 ui/compositor/compositor.cc:161: offscreen)); On 2013/07/30 20:32:08, danakj wrote: > On 2013/07/30 ...
7 years, 4 months ago (2013-07-30 20:42:02 UTC) #4
danakj
On Tue, Jul 30, 2013 at 4:42 PM, <piman@chromium.org> wrote: > > https://codereview.chromium.**org/21026005/diff/5001/ui/** > compositor/compositor.cc<https://codereview.chromium.org/21026005/diff/5001/ui/compositor/compositor.cc> ...
7 years, 4 months ago (2013-07-30 20:42:56 UTC) #5
danakj
PTAL This is also awesome cuz I was worried about more tightly coupling TestContext3d and ...
7 years, 4 months ago (2013-07-30 20:45:25 UTC) #6
piman
lgtm
7 years, 4 months ago (2013-07-30 20:56:18 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/21026005/26001
7 years, 4 months ago (2013-08-07 21:52:58 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-07 22:19:46 UTC) #9
danakj
ben@ please have a look: using the ContextFactory's ContextProvider in aura bench.
7 years, 4 months ago (2013-08-13 00:43:42 UTC) #10
danakj
ben@ please have a look: using the ContextFactory's ContextProvider in aura bench.
7 years, 4 months ago (2013-08-13 00:44:39 UTC) #11
danakj
+the not OOO owner for ui/aura/
7 years, 4 months ago (2013-08-13 01:07:21 UTC) #12
sadrul
LGTM https://codereview.chromium.org/21026005/diff/59001/ui/aura/bench/bench_main.cc File ui/aura/bench/bench_main.cc (right): https://codereview.chromium.org/21026005/diff/59001/ui/aura/bench/bench_main.cc#newcode213 ui/aura/bench/bench_main.cc:213: OffscreenContextProviderForMainThread(); I assume this follows any special indentation ...
7 years, 4 months ago (2013-08-13 01:18:16 UTC) #13
danakj
Thanks! https://codereview.chromium.org/21026005/diff/59001/ui/aura/bench/bench_main.cc File ui/aura/bench/bench_main.cc (right): https://codereview.chromium.org/21026005/diff/59001/ui/aura/bench/bench_main.cc#newcode213 ui/aura/bench/bench_main.cc:213: OffscreenContextProviderForMainThread(); On 2013/08/13 01:18:17, sadrul wrote: > I ...
7 years, 4 months ago (2013-08-13 01:21:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/21026005/63001
7 years, 4 months ago (2013-08-13 01:27:45 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-13 05:18:37 UTC) #16
Message was sent while issue was closed.
Change committed as 217202

Powered by Google App Engine
This is Rietveld 408576698