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

Issue 668123003: cc: Support texture rect targets for masks (Closed)

Created:
6 years, 2 months ago by enne (OOO)
Modified:
6 years, 1 month ago
Reviewers:
danakj, reveman
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@base_for_texture_rect_changes
Project:
chromium
Visibility:
Public.

Description

cc: Support texture rect targets for masks Currently, GLRenderer supports tile resources as either texture 2d or texture rectangle. Before this patch, it only supported texture 2d masks. This fills the gap to handle texture rectangle masks. In practice it means that using a zero copy raster worker pool will now not break masks. This in turn enables impl-side painting for layout tests. Unfortunately, there is a lot of indirection between a test saying it wants to test a particular target type and what needs to happen. To make sure that tests are testing the right thing, the creation of the raster worker and resource pools is now virtual so that tests can create them as explicitly as needed. R=danakj@chromium.org,reveman@chromium.org BUG=423533 Committed: https://crrev.com/03dbe8ae71dbf674627acad91fff64a2fa9d4eb6 Cr-Commit-Position: refs/heads/master@{#302010}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Rebase on blend mode patch #

Patch Set 3 : virtual CreateResourceAndRasterWorkerPool #

Total comments: 28

Patch Set 4 : Rebase #

Patch Set 5 : reveman comments #

Total comments: 2

Patch Set 6 : Add a NOTREACHED #

Patch Set 7 : break => return #

Total comments: 6

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+536 lines, -155 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -6 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 8 chunks +44 lines, -34 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 8 chunks +41 lines, -35 lines 0 comments Download
M cc/output/shader.cc View 1 2 3 4 5 6 7 chunks +8 lines, -8 lines 0 comments Download
A cc/test/layer_tree_pixel_resource_test.h View 1 2 3 4 1 chunk +88 lines, -0 lines 0 comments Download
A cc/test/layer_tree_pixel_resource_test.cc View 1 2 3 4 5 6 1 chunk +225 lines, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_test.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -5 lines 0 comments Download
M cc/test/layer_tree_test.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 4 5 6 7 3 chunks +19 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +50 lines, -30 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 1 2 10 chunks +28 lines, -32 lines 0 comments Download

Messages

Total messages: 30 (3 generated)
enne (OOO)
For correctness, this depends on: https://codereview.chromium.org/656263003 https://codereview.chromium.org/659883003 https://codereview.chromium.org/665463003 It will also need to get rebased ...
6 years, 2 months ago (2014-10-21 23:55:48 UTC) #1
reveman
I don't think texture rectangle target is enough. We need external oes target too. https://codereview.chromium.org/668123003/diff/1/cc/output/gl_renderer.cc ...
6 years, 2 months ago (2014-10-22 12:40:39 UTC) #2
enne (OOO)
https://codereview.chromium.org/668123003/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/668123003/diff/1/cc/output/gl_renderer.cc#newcode1373 cc/output/gl_renderer.cc:1373: if (mask_sampler == SamplerType2DRect) { On 2014/10/22 12:40:38, reveman ...
6 years, 1 month ago (2014-10-22 19:20:44 UTC) #3
reveman
https://codereview.chromium.org/668123003/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/668123003/diff/1/cc/output/gl_renderer.cc#newcode1373 cc/output/gl_renderer.cc:1373: if (mask_sampler == SamplerType2DRect) { On 2014/10/22 19:20:44, enne ...
6 years, 1 month ago (2014-10-22 20:36:48 UTC) #4
enne (OOO)
https://codereview.chromium.org/668123003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/668123003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2055 cc/trees/layer_tree_host_impl.cc:2055: LayerTreeSettings::FORCE_TEXTURE_2D_TARGET) On 2014/10/22 20:36:47, reveman wrote: > On 2014/10/22 ...
6 years, 1 month ago (2014-10-22 21:14:30 UTC) #5
enne (OOO)
A different solution from adding settings would be to virtualize the raster worker pool creation ...
6 years, 1 month ago (2014-10-22 21:24:07 UTC) #6
reveman
https://codereview.chromium.org/668123003/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/668123003/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2055 cc/trees/layer_tree_host_impl.cc:2055: LayerTreeSettings::FORCE_TEXTURE_2D_TARGET) On 2014/10/22 21:14:30, enne wrote: > On 2014/10/22 ...
6 years, 1 month ago (2014-10-22 23:13:35 UTC) #7
reveman
https://codereview.chromium.org/668123003/diff/1/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/668123003/diff/1/cc/trees/layer_tree_settings.h#newcode87 cc/trees/layer_tree_settings.h:87: TextureTargetPrefs texture_target_prefs; On 2014/10/22 21:14:30, enne wrote: > On ...
6 years, 1 month ago (2014-10-22 23:25:20 UTC) #8
enne (OOO)
Here's an approach with a virtual resource pool/raster worker creating function. What do you think? ...
6 years, 1 month ago (2014-10-23 19:24:16 UTC) #9
reveman
Sure, this approach seems ok to me. Some comments below. https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc File cc/test/layer_tree_pixel_resource_test.cc (right): https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc#newcode36 ...
6 years, 1 month ago (2014-10-23 20:39:28 UTC) #10
enne (OOO)
https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc File cc/test/layer_tree_pixel_resource_test.cc (right): https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc#newcode36 cc/test/layer_tree_pixel_resource_test.cc:36: #if !defined(OS_ANDROID) On 2014/10/23 20:39:27, reveman wrote: > what ...
6 years, 1 month ago (2014-10-24 22:21:28 UTC) #11
reveman
https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc File cc/test/layer_tree_pixel_resource_test.cc (right): https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc#newcode36 cc/test/layer_tree_pixel_resource_test.cc:36: #if !defined(OS_ANDROID) On 2014/10/24 22:21:28, enne wrote: > On ...
6 years, 1 month ago (2014-10-27 17:19:04 UTC) #12
enne (OOO)
https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc File cc/test/layer_tree_pixel_resource_test.cc (right): https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.cc#newcode36 cc/test/layer_tree_pixel_resource_test.cc:36: #if !defined(OS_ANDROID) On 2014/10/27 17:19:04, reveman wrote: > On ...
6 years, 1 month ago (2014-10-27 17:56:22 UTC) #13
reveman
https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.h File cc/test/layer_tree_pixel_resource_test.h (right): https://codereview.chromium.org/668123003/diff/40001/cc/test/layer_tree_pixel_resource_test.h#newcode57 cc/test/layer_tree_pixel_resource_test.h:57: unsigned draw_texture_target_; On 2014/10/27 17:56:22, enne wrote: > On ...
6 years, 1 month ago (2014-10-27 18:42:44 UTC) #14
enne (OOO)
On 2014/10/27 at 18:42:44, reveman wrote: > Testing all supported draw targets sgtm. Testing all ...
6 years, 1 month ago (2014-10-27 19:22:54 UTC) #15
reveman
https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h File cc/test/layer_tree_pixel_resource_test.h (right): https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h#newcode23 cc/test/layer_tree_pixel_resource_test.h:23: GL_GPU_RASTER_2D_DRAW, Just so I don't forget, does adding GL_GPU_RASTER_RECT_DRAW ...
6 years, 1 month ago (2014-10-27 19:39:43 UTC) #16
enne (OOO)
https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h File cc/test/layer_tree_pixel_resource_test.h (right): https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h#newcode23 cc/test/layer_tree_pixel_resource_test.h:23: GL_GPU_RASTER_2D_DRAW, On 2014/10/27 19:39:43, reveman wrote: > Just so ...
6 years, 1 month ago (2014-10-27 19:56:45 UTC) #17
reveman
https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h File cc/test/layer_tree_pixel_resource_test.h (right): https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h#newcode23 cc/test/layer_tree_pixel_resource_test.h:23: GL_GPU_RASTER_2D_DRAW, On 2014/10/27 19:56:45, enne wrote: > On 2014/10/27 ...
6 years, 1 month ago (2014-10-27 20:07:12 UTC) #18
enne (OOO)
https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.cc File cc/test/layer_tree_pixel_resource_test.cc (right): https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.cc#newcode25 cc/test/layer_tree_pixel_resource_test.cc:25: case GL_GPU_RASTER_2D_DRAW: And supported here too? https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h File cc/test/layer_tree_pixel_resource_test.h ...
6 years, 1 month ago (2014-10-27 20:08:51 UTC) #19
reveman
https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h File cc/test/layer_tree_pixel_resource_test.h (right): https://codereview.chromium.org/668123003/diff/120001/cc/test/layer_tree_pixel_resource_test.h#newcode70 cc/test/layer_tree_pixel_resource_test.h:70: GL_GPU_RASTER_2D_DRAW, \ On 2014/10/27 20:08:51, enne wrote: > > ...
6 years, 1 month ago (2014-10-28 20:11:01 UTC) #20
enne (OOO)
On 2014/10/28 at 20:11:01, reveman wrote: > GL_GPU_RASTER_RECT_DRAW? I'm interested in testing the GpuRasterWorkerPool with ...
6 years, 1 month ago (2014-10-28 22:18:05 UTC) #21
reveman
On 2014/10/28 22:18:05, enne wrote: > On 2014/10/28 at 20:11:01, reveman wrote: > > > ...
6 years, 1 month ago (2014-10-28 22:52:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/668123003/140001
6 years, 1 month ago (2014-10-29 23:07:47 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/85925) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/75513) win_gpu ...
6 years, 1 month ago (2014-10-29 23:14:03 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/668123003/160001
6 years, 1 month ago (2014-10-29 23:45:00 UTC) #28
commit-bot: I haz the power
Committed patchset #9 (id:160001)
6 years, 1 month ago (2014-10-30 01:33:07 UTC) #29
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 01:34:07 UTC) #30
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/03dbe8ae71dbf674627acad91fff64a2fa9d4eb6
Cr-Commit-Position: refs/heads/master@{#302010}

Powered by Google App Engine
This is Rietveld 408576698