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

Issue 375303002: cc: Refactor ResourceProvider. (Closed)

Created:
6 years, 5 months ago by sohanjg
Modified:
5 years, 1 month ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: Refactor ResourceProvider. This moves classes and apis which are not associated with Resource to their caller. We invoke the GL methods directly instead of wrapping them, and we move the ScopedGpuRaster class out of ResourceProvider to its own file. BUG=391190 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283404

Patch Set 1 #

Total comments: 18

Patch Set 2 : remove helper class move api impl to callee. #

Total comments: 16

Patch Set 3 : review comments addressed. #

Total comments: 22

Patch Set 4 : review comments addressed. #

Total comments: 11

Patch Set 5 : review comments addressed #

Total comments: 12

Patch Set 6 : review comments addressed. #

Total comments: 2

Patch Set 7 : review comments addressed. #

Patch Set 8 : handle test fails for TestContextProvider #

Patch Set 9 : fixing typing error in build.gn #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -112 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 6 chunks +11 lines, -5 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.h View 1 2 3 chunks +3 lines, -0 lines 0 comments Download
M cc/resources/gpu_raster_worker_pool.cc View 1 2 3 chunks +7 lines, -3 lines 0 comments Download
M cc/resources/image_copy_raster_worker_pool.h View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/image_copy_raster_worker_pool.cc View 1 2 3 4 5 3 chunks +14 lines, -4 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 2 3 4 5 4 chunks +7 lines, -1 line 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 3 chunks +0 lines, -25 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 4 chunks +1 line, -63 lines 0 comments Download
A cc/resources/scoped_gpu_raster.h View 1 2 3 4 1 chunk +34 lines, -0 lines 0 comments Download
A cc/resources/scoped_gpu_raster.cc View 1 2 3 4 5 6 7 1 chunk +50 lines, -0 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 5 chunks +10 lines, -4 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (1 generated)
sohanjg
Can you please take a look, if the direction is correct. Thanks.
6 years, 5 months ago (2014-07-09 11:34:23 UTC) #1
danakj
I think the ResourceHelper class as it is in this CL doesn't need to exist. ...
6 years, 5 months ago (2014-07-09 16:01:34 UTC) #2
sohanjg
We are still calling resourceprovider for the glcontext (where output surface isnt available), and we ...
6 years, 5 months ago (2014-07-10 15:11:07 UTC) #3
danakj
https://codereview.chromium.org/375303002/diff/40001/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/375303002/diff/40001/cc/output/gl_renderer.h#newcode136 cc/output/gl_renderer.h:136: static GLint GetActiveTextureUnit(gpu::gles2::GLES2Interface* gl); why public and a member ...
6 years, 5 months ago (2014-07-10 17:01:44 UTC) #4
sohanjg
Can you please take a look, Thanks. https://codereview.chromium.org/375303002/diff/40001/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/375303002/diff/40001/cc/output/gl_renderer.h#newcode136 cc/output/gl_renderer.h:136: static GLint ...
6 years, 5 months ago (2014-07-11 16:43:33 UTC) #5
danakj
https://codereview.chromium.org/375303002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/375303002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc#newcode240 cc/resources/image_copy_raster_worker_pool.cc:240: GLES2Interface* gl = context_provider_->ContextGL(); if (context_provider_) context_provider_->ContextGL()->ShallowFlushCHROMIUM() https://codereview.chromium.org/375303002/diff/60001/cc/resources/pixel_buffer_raster_worker_pool.cc File ...
6 years, 5 months ago (2014-07-11 16:49:05 UTC) #6
sohanjg
Can you please take a look. Thanks. https://codereview.chromium.org/375303002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/375303002/diff/60001/cc/resources/image_copy_raster_worker_pool.cc#newcode240 cc/resources/image_copy_raster_worker_pool.cc:240: GLES2Interface* gl ...
6 years, 5 months ago (2014-07-11 17:12:46 UTC) #7
danakj
https://codereview.chromium.org/375303002/diff/80001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/375303002/diff/80001/cc/resources/image_copy_raster_worker_pool.cc#newcode242 cc/resources/image_copy_raster_worker_pool.cc:242: nit: extra whitespace https://codereview.chromium.org/375303002/diff/80001/cc/resources/scoped_gpu_raster.cc File cc/resources/scoped_gpu_raster.cc (right): https://codereview.chromium.org/375303002/diff/80001/cc/resources/scoped_gpu_raster.cc#newcode1 cc/resources/scoped_gpu_raster.cc:1: ...
6 years, 5 months ago (2014-07-11 17:39:59 UTC) #8
sohanjg
Can you please take a look. Thanks. https://codereview.chromium.org/375303002/diff/80001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/375303002/diff/80001/cc/resources/image_copy_raster_worker_pool.cc#newcode242 cc/resources/image_copy_raster_worker_pool.cc:242: On 2014/07/11 ...
6 years, 5 months ago (2014-07-12 11:08:26 UTC) #9
danakj
https://codereview.chromium.org/375303002/diff/100001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/375303002/diff/100001/cc/resources/image_copy_raster_worker_pool.cc#newcode15 cc/resources/image_copy_raster_worker_pool.cc:15: using gpu::gles2::GLES2Interface; not needed? https://codereview.chromium.org/375303002/diff/100001/cc/resources/pixel_buffer_raster_worker_pool.cc File cc/resources/pixel_buffer_raster_worker_pool.cc (right): https://codereview.chromium.org/375303002/diff/100001/cc/resources/pixel_buffer_raster_worker_pool.cc#newcode15 ...
6 years, 5 months ago (2014-07-14 15:29:12 UTC) #10
sohanjg
Can you please take a look, Thanks. https://codereview.chromium.org/375303002/diff/100001/cc/resources/image_copy_raster_worker_pool.cc File cc/resources/image_copy_raster_worker_pool.cc (right): https://codereview.chromium.org/375303002/diff/100001/cc/resources/image_copy_raster_worker_pool.cc#newcode15 cc/resources/image_copy_raster_worker_pool.cc:15: using gpu::gles2::GLES2Interface; ...
6 years, 5 months ago (2014-07-14 15:59:28 UTC) #11
danakj
LGTM 1 more thing. https://codereview.chromium.org/375303002/diff/140001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/375303002/diff/140001/cc/trees/thread_proxy.cc#newcode1278 cc/trees/thread_proxy.cc:1278: impl().layer_tree_host_impl->output_surface()->context_provider(); Oh, I think you ...
6 years, 5 months ago (2014-07-14 16:29:19 UTC) #12
danakj
Can you update the patch title/description?
6 years, 5 months ago (2014-07-14 16:29:33 UTC) #13
sohanjg
Can you please take a look. Thanks. https://codereview.chromium.org/375303002/diff/140001/cc/trees/thread_proxy.cc File cc/trees/thread_proxy.cc (right): https://codereview.chromium.org/375303002/diff/140001/cc/trees/thread_proxy.cc#newcode1278 cc/trees/thread_proxy.cc:1278: impl().layer_tree_host_impl->output_surface()->context_provider(); On ...
6 years, 5 months ago (2014-07-14 16:44:47 UTC) #14
danakj
LGTM
6 years, 5 months ago (2014-07-14 20:32:40 UTC) #15
danakj
The CQ bit was checked by danakj@chromium.org
6 years, 5 months ago (2014-07-14 20:32:51 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sohan.jyoti@samsung.com/375303002/160001
6 years, 5 months ago (2014-07-14 20:34:21 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_chromium_gn_compile_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-15 00:31:28 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-15 10:29:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/25681)
6 years, 5 months ago (2014-07-15 10:29:50 UTC) #20
sohanjg
The CQ bit was checked by sohan.jyoti@samsung.com
6 years, 5 months ago (2014-07-15 12:25:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sohan.jyoti@samsung.com/375303002/160001
6 years, 5 months ago (2014-07-15 12:27:47 UTC) #22
sohanjg
The CQ bit was unchecked by sohan.jyoti@samsung.com
6 years, 5 months ago (2014-07-16 07:34:52 UTC) #23
sohanjg
The CQ bit was checked by sohan.jyoti@samsung.com
6 years, 5 months ago (2014-07-16 07:54:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sohan.jyoti@samsung.com/375303002/180001
6 years, 5 months ago (2014-07-16 07:55:54 UTC) #25
sohanjg
The CQ bit was unchecked by sohan.jyoti@samsung.com
6 years, 5 months ago (2014-07-16 09:43:52 UTC) #26
sohanjg
The CQ bit was checked by sohan.jyoti@samsung.com
6 years, 5 months ago (2014-07-16 09:47:37 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sohan.jyoti@samsung.com/375303002/200001
6 years, 5 months ago (2014-07-16 09:49:52 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-16 13:21:20 UTC) #29
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 15:52:50 UTC) #30
Message was sent while issue was closed.
Change committed as 283404

Powered by Google App Engine
This is Rietveld 408576698