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

Issue 1985973002: Defer compositor context creation to the thread.

Created:
4 years, 7 months ago by danakj
Modified:
4 years, 7 months ago
Reviewers:
enne (OOO), piman
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, no sievers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Defer compositor context creation to the thread. R=enne@chromium.org, piman@chromium.org BUG=487471 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 #

Total comments: 13

Patch Set 2 : contextfactory: minorstuff #

Patch Set 3 : contextfactory: static_casts #

Patch Set 4 : contextfactory: Factory-name-and-const-impls-and-no-disallow-copy-on-iterface #

Patch Set 5 : contextfactory: . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -435 lines) Patch
M cc/output/context_provider.h View 1 2 3 1 chunk +9 lines, -7 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 3 chunks +12 lines, -11 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 3 chunks +18 lines, -11 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 3 4 7 chunks +29 lines, -28 lines 0 comments Download
M cc/output/output_surface_unittest.cc View 1 2 3 4 4 chunks +23 lines, -38 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 7 chunks +14 lines, -12 lines 0 comments Download
M cc/output/renderer_unittest.cc View 1 2 3 4 3 chunks +30 lines, -25 lines 0 comments Download
M cc/output/texture_mailbox_deleter_unittest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M cc/raster/raster_buffer_provider_unittest.cc View 1 2 3 4 chunks +16 lines, -14 lines 0 comments Download
M cc/raster/scoped_gpu_raster_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M cc/surfaces/display_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_display_output_surface.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/surface_display_output_surface.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M cc/surfaces/surface_display_output_surface_unittest.cc View 1 2 3 2 chunks +5 lines, -7 lines 0 comments Download
M cc/test/failure_output_surface.cc View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 4 4 chunks +34 lines, -28 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 4 4 chunks +13 lines, -10 lines 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M cc/test/pixel_test_output_surface.h View 1 2 3 4 1 chunk +1 line, -5 lines 0 comments Download
M cc/test/pixel_test_output_surface.cc View 1 2 3 4 2 chunks +3 lines, -11 lines 0 comments Download
M cc/test/test_context_provider.h View 1 2 3 4 3 chunks +26 lines, -15 lines 1 comment Download
M cc/test/test_context_provider.cc View 1 2 3 4 6 chunks +36 lines, -51 lines 0 comments Download
M cc/test/test_in_process_context_provider.h View 1 2 3 2 chunks +13 lines, -1 line 0 comments Download
M cc/test/test_in_process_context_provider.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 4 chunks +8 lines, -2 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 2 chunks +1 line, -5 lines 0 comments Download
M cc/tiles/gpu_image_decode_controller_unittest.cc View 17 chunks +0 lines, -17 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 14 chunks +63 lines, -65 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 chunks +21 lines, -25 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 3 11 chunks +58 lines, -22 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor_unittest.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
danakj
This is my idea for staging deferring create to the compositor thread. It has a ...
4 years, 7 months ago (2016-05-17 02:46:38 UTC) #2
piman
https://codereview.chromium.org/1985973002/diff/1/cc/output/context_provider.h File cc/output/context_provider.h (right): https://codereview.chromium.org/1985973002/diff/1/cc/output/context_provider.h#newcode62 cc/output/context_provider.h:62: class DeferredCreate { naming-wise, how about Factory? It's shorter, ...
4 years, 7 months ago (2016-05-17 03:41:41 UTC) #3
danakj
Ok I'll play with Factory and static casts. Thanks for the feedback. New patch later ...
4 years, 7 months ago (2016-05-17 19:53:35 UTC) #4
danakj
OK this is it in all it's glory - for the cc_unittests build target. I ...
4 years, 7 months ago (2016-05-17 23:16:14 UTC) #5
danakj
4 years, 7 months ago (2016-05-17 23:17:16 UTC) #6
https://codereview.chromium.org/1985973002/diff/80001/cc/test/test_context_pr...
File cc/test/test_context_provider.h (right):

https://codereview.chromium.org/1985973002/diff/80001/cc/test/test_context_pr...
cc/test/test_context_provider.h:52: private:
Notably I made these private and added constructors so it's harder to use it
wrong, and you can just write MakeUnique<T> once instead of needing an lvalue to
set stuff on.

Powered by Google App Engine
This is Rietveld 408576698