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

Issue 83883002: cc: Allow TEXTURE_RECTANGLE_ARB to be used for tile textures. (Closed)

Created:
7 years, 1 month ago by reveman
Modified:
7 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Allow TEXTURE_RECTANGLE_ARB to be used for tile textures. Refactor shader framework to support different texture targets and use TEXTURE_RECTANGLE_ARB by default when initializing tile textures using ImageRasterWorkerPool. BUG=322571 TEST=cc_unittests --gtest_filter=GLRendererShaderPixelTest.AllShadersCompile Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236981

Patch Set 1 #

Total comments: 15

Patch Set 2 : address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+664 lines, -515 lines) Patch
M cc/output/gl_renderer.h View 5 chunks +46 lines, -62 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 17 chunks +239 lines, -180 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 12 chunks +60 lines, -40 lines 0 comments Download
M cc/output/program_binding.h View 2 chunks +3 lines, -2 lines 0 comments Download
M cc/output/shader.h View 1 13 chunks +58 lines, -46 lines 0 comments Download
M cc/output/shader.cc View 30 chunks +125 lines, -133 lines 0 comments Download
M cc/resources/image_raster_worker_pool.h View 1 2 chunks +11 lines, -3 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/prioritized_resource_manager.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/raster_worker_pool.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_pool.h View 4 chunks +13 lines, -5 lines 0 comments Download
M cc/resources/resource_pool.cc View 5 chunks +10 lines, -5 lines 0 comments Download
M cc/resources/resource_provider.h View 3 chunks +10 lines, -9 lines 0 comments Download
M cc/resources/resource_provider.cc View 8 chunks +26 lines, -18 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 2 chunks +6 lines, -1 line 0 comments Download
M cc/resources/tile_manager.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 3 chunks +10 lines, -6 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 3 chunks +19 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
reveman
This makes our shader framework more flexible in terms of texture targets. The result is ...
7 years, 1 month ago (2013-11-22 18:27:16 UTC) #1
epennerAtGoogle
Some high level questions and comments: - Can you describe why rect textures are needed ...
7 years, 1 month ago (2013-11-22 19:27:35 UTC) #2
epennerAtGoogle
https://codereview.chromium.org/83883002/diff/1/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/83883002/diff/1/cc/output/gl_renderer.h#newcode361 cc/output/gl_renderer.h:361: TileProgram tile_program_[NumTexCoordPrecisions][NumSamplerTypes]; Hmm, could the program also become an ...
7 years, 1 month ago (2013-11-22 19:27:55 UTC) #3
epennerAtGoogle
https://codereview.chromium.org/83883002/diff/1/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/83883002/diff/1/cc/output/gl_renderer.h#newcode361 cc/output/gl_renderer.h:361: TileProgram tile_program_[NumTexCoordPrecisions][NumSamplerTypes]; > Optional nit: I like to use ...
7 years, 1 month ago (2013-11-22 19:31:17 UTC) #4
reveman
On 2013/11/22 19:27:35, epennerAtGoogle wrote: > Some high level questions and comments: > > - ...
7 years, 1 month ago (2013-11-22 19:52:11 UTC) #5
piman
LGTM modulo figuring out the correct target everywhere. Also double-checking if there's perf concerns in ...
7 years, 1 month ago (2013-11-22 20:48:13 UTC) #6
reveman
On 2013/11/22 19:27:35, epennerAtGoogle wrote: > Some high level questions and comments: > > - ...
7 years, 1 month ago (2013-11-22 20:55:24 UTC) #7
epennerAtGoogle
> API, IOSurfaces can only be bound to TEXTURE_RECTANGLE_ARB target. Grr, these things are frustrating ...
7 years, 1 month ago (2013-11-22 22:36:59 UTC) #8
kaanb
lgtm with some questions and suggestions, I'm out next week so you can go ahead ...
7 years, 1 month ago (2013-11-23 02:02:20 UTC) #9
reveman
https://codereview.chromium.org/83883002/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/83883002/diff/1/cc/output/gl_renderer.cc#newcode1384 cc/output/gl_renderer.cc:1384: fragment_tex_translate_x /= texture_size.width(); On 2013/11/23 02:02:20, kaanb wrote: > ...
7 years, 1 month ago (2013-11-23 10:29:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/83883002/200001
7 years, 1 month ago (2013-11-23 10:31:02 UTC) #11
commit-bot: I haz the power
7 years, 1 month ago (2013-11-23 21:19:14 UTC) #12
Message was sent while issue was closed.
Change committed as 236981

Powered by Google App Engine
This is Rietveld 408576698