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

Issue 744713002: gpu: fix CopyTextureCHROMIUM for immutable texture. (Closed)

Created:
6 years, 1 month ago by dshwang
Modified:
6 years, 1 month ago
Reviewers:
reveman, no sievers
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

gpu: fix CopyTextureCHROMIUM for immutable texture. We cannot use glCopyTexImage2D on the texture which is allocated by glTexStorage2D [1] [1] https://www.opengl.org/registry/specs/ARB/texture_storage.txt The fast path uses glCopyTexSubImage2D instead of glCopyTexImage2D. In addition, optimize CopyTextureCHROMIUM for GL_TEXTURE_RECTANGLE_ARB, which is often used by the compositor, so make CopyTextureCHROMIUM use the fast path. Committed: https://crrev.com/df36f0aebe453bdbe842c85b331f6f07a24255a2 Cr-Commit-Position: refs/heads/master@{#305268}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 1

Patch Set 3 : add unittests #

Total comments: 1

Patch Set 4 : add log; "GL_EXT_texture_storage not supported. Skipping test..." #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -13 lines) Patch
M gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc View 1 3 chunks +5 lines, -13 lines 0 comments Download
M gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
dshwang
6 years, 1 month ago (2014-11-20 14:59:01 UTC) #2
dshwang
could you review? one-copy uses CopyTextureCHROMIUM in ResourceProvider::CopyResource and one-copy uses GL_TEXTURE_RECTANGLE_ARB. Refer to https://code.google.com/p/chromium/codesearch#chromium/src/cc/trees/layer_tree_host_impl.cc&q=GetMapImageTextureTarget&sq=package:chromium&l=154 ...
6 years, 1 month ago (2014-11-20 14:59:40 UTC) #3
dshwang
https://codereview.chromium.org/744713002/diff/20001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc File gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc (left): https://codereview.chromium.org/744713002/diff/20001/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc#oldcode336 gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc:336: // so restrict this to GL_TEXTURE_2D. ARB_texture_rectangle spec[1] don't ...
6 years, 1 month ago (2014-11-20 15:23:07 UTC) #4
no sievers
Good catch. +reveman to double-check but both changes seem ok to me. Mind adding a ...
6 years, 1 month ago (2014-11-20 20:49:42 UTC) #6
dshwang
On 2014/11/20 20:49:42, sievers wrote: > Good catch. > > +reveman to double-check but both ...
6 years, 1 month ago (2014-11-20 21:43:38 UTC) #7
no sievers
On 2014/11/20 21:43:38, dshwang wrote: > On 2014/11/20 20:49:42, sievers wrote: > > Good catch. ...
6 years, 1 month ago (2014-11-20 21:45:22 UTC) #8
reveman
lgtm % test and sievers review
6 years, 1 month ago (2014-11-20 22:16:11 UTC) #9
dshwang
On 2014/11/20 22:16:11, reveman wrote: > lgtm % test and sievers review Thank you for ...
6 years, 1 month ago (2014-11-21 10:26:28 UTC) #10
no sievers
lgtm https://codereview.chromium.org/744713002/diff/40001/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc File gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc (right): https://codereview.chromium.org/744713002/diff/40001/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc#newcode80 gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc:80: if (!GLTestHelper::HasExtension("GL_EXT_texture_storage")) { nit: can you put LOG(INFO) ...
6 years, 1 month ago (2014-11-21 18:39:49 UTC) #11
dshwang
On 2014/11/21 18:39:49, sievers wrote: > lgtm Thank you for reviewing! > > https://codereview.chromium.org/744713002/diff/40001/gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc > ...
6 years, 1 month ago (2014-11-21 18:42:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/744713002/60001
6 years, 1 month ago (2014-11-21 18:44:12 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-11-21 19:54:48 UTC) #15
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/df36f0aebe453bdbe842c85b331f6f07a24255a2 Cr-Commit-Position: refs/heads/master@{#305268}
6 years, 1 month ago (2014-11-21 19:55:34 UTC) #16
Ken Russell (switch to Gerrit)
6 years ago (2014-11-27 00:48:14 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/760173002/ by kbr@chromium.org.

The reason for reverting is: Broke video uploads to WebGL on official builds
(taking the hardware accelerated video decode path). See Issue 436538.
.

Powered by Google App Engine
This is Rietveld 408576698