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

Issue 1449043005: webgl: use immutable texture for the default FBO. (Closed)

Created:
5 years, 1 month ago by dshwang
Modified:
4 years, 5 months ago
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, vmpstr+blinkwatch_chromium.org, dshwang, jbroman, Justin Novosad, danakj, blink-reviews-platform-graphics_chromium.org, Rik, f(malita), blink-reviews, piman+watch_chromium.org, Stephen Chennney, rwlbuis, Zhenyao Mo
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

webgl: use immutable texture for the default FBO. Use immutable texture for the default FBO like chromium compositor. In theory, it speeds up drawing speed, because immutable texture skips texture validation on drawing call. In addition, immutable texture allows GL_INTEL_framebuffer_CMAA more optimization. BUG=557848 TEST= WebglConformance.conformance_renderbuffers_framebuffer_state_restoration WebglConformance.conformance_textures_misc_texture_size_cube_maps WebglConformance.conformance_textures_misc_texture_sub_image_cube_maps WebglConformance.conformance_textures_webgl_canvas_tex_image_and_sub_image_2d_with_webgl_canvas_rgb_rgb_unsigned_byte WebglConformance.conformance_textures_webgl_canvas_tex_image_and_sub_image_2d_with_webgl_canvas_rgb_rgb_unsigned_short_5_6_5 WebglConformance.conformance_textures_webgl_canvas_tex_image_and_sub_image_2d_with_webgl_canvas_rgba_rgba_unsigned_byte WebglConformance.conformance_textures_webgl_canvas_tex_image_and_sub_image_2d_with_webgl_canvas_rgba_rgba_unsigned_short_4_4_4_4 WebglConformance.conformance_textures_webgl_canvas_tex_image_and_sub_image_2d_with_webgl_canvas_rgba_rgba_unsigned_short_5_5_5_1 Committed: https://crrev.com/fb9d8e245ac84c6c0806e86e7884b4775a84b4b5 Cr-Commit-Position: refs/heads/master@{#361335}

Patch Set 1 #

Patch Set 2 : fix layout tests failure #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 5 chunks +16 lines, -8 lines 7 comments Download

Messages

Total messages: 17 (3 generated)
dshwang
kbr@, could you review? Adrian said in offline that CMAA requires immutable texture to avoid ...
5 years, 1 month ago (2015-11-18 18:21:24 UTC) #2
Ken Russell (switch to Gerrit)
This seems fine in principle but breaks a bunch of pixel and layout tests on ...
5 years, 1 month ago (2015-11-19 02:49:18 UTC) #3
dshwang
On 2015/11/19 02:49:18, Ken Russell wrote: > This seems fine in principle but breaks a ...
5 years, 1 month ago (2015-11-19 12:33:00 UTC) #4
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode309 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:309: m_context->copySubTextureCHROMIUM(GL_TEXTURE_2D, m_colorBuffer.textureId, frontColorBufferMailbox->textureInfo.textureId, On 2015/11/19 12:33:00, dshwang wrote: > ...
5 years, 1 month ago (2015-11-19 21:47:41 UTC) #5
dshwang
copyTextureCHROMIUM call doesn't resize the texture. see below comments. https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode277 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:277: ...
5 years, 1 month ago (2015-11-20 09:31:32 UTC) #7
Ken Russell (switch to Gerrit)
LGTM with a couple of comments. CC'ing bajones and zmo. https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode277 ...
5 years, 1 month ago (2015-11-23 22:26:31 UTC) #8
bajones
LGTM as well.
5 years, 1 month ago (2015-11-23 22:56:59 UTC) #9
dshwang
Thank you for reviewing! https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp File third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1449043005/diff/20001/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode309 third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp:309: m_context->copySubTextureCHROMIUM(GL_TEXTURE_2D, m_colorBuffer.textureId, frontColorBufferMailbox->textureInfo.textureId, On 2015/11/23 ...
5 years ago (2015-11-24 12:05:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1449043005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1449043005/20001
5 years ago (2015-11-24 12:05:51 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-11-24 14:15:12 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/fb9d8e245ac84c6c0806e86e7884b4775a84b4b5 Cr-Commit-Position: refs/heads/master@{#361335}
5 years ago (2015-11-24 14:16:10 UTC) #14
dshwang
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1474763002/ by dongseong.hwang@intel.com. ...
5 years ago (2015-11-24 16:47:47 UTC) #15
Corentin Wallez
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2135753003/ by cwallez@chromium.org. ...
4 years, 5 months ago (2016-07-08 21:23:38 UTC) #16
Ken Russell (switch to Gerrit)
4 years, 5 months ago (2016-07-08 21:40:04 UTC) #17
Message was sent while issue was closed.
On 2016/07/08 21:23:38, Corentin Wallez wrote:
> A revert of this CL (patchset #2 id:20001) has been created in
> https://codereview.chromium.org/2135753003/ by mailto:cwallez@chromium.org.
> 
> The reason for reverting is:
> https://bugs.chromium.org/p/chromium/issues/detail?id=626742.

It turned out the revert patch didn't apply correctly. Instead, proceeding with
https://codereview.chromium.org/2131863003/ .

Powered by Google App Engine
This is Rietveld 408576698