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

Issue 11418297: Clipping textured quads explicitly without scissoring (Closed)

Created:
8 years ago by whunt
Modified:
8 years ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

This patch makes quad-clipping to a scissor window an explicit operation at quad-generation time. If the transform for the quad is a scale and or a transform clipping is a simple bounding box intersection and uv-recomputation. BUG=161871 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171850

Patch Set 1 #

Total comments: 11

Patch Set 2 : adding is_clipped check #

Patch Set 3 : using rect and moving the clipper to texture_draw_quad #

Patch Set 4 : using static cast #

Total comments: 9

Patch Set 5 : implementing jamesr's style comments #

Patch Set 6 : removing const on return value #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -1 line) Patch
M cc/texture_draw_quad.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/texture_draw_quad.cc View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
M cc/texture_layer_impl.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
whunt
Publishing so mail goes out!
8 years ago (2012-12-03 23:23:55 UTC) #1
shawnsingh
Sweet! https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc File cc/texture_layer_impl.cc (right): https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc#newcode75 cc/texture_layer_impl.cc:75: // Perform clipping on the rect. Unless there's ...
8 years ago (2012-12-03 23:34:08 UTC) #2
shawnsingh
https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc File cc/texture_layer_impl.cc (right): https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc#newcode49 cc/texture_layer_impl.cc:49: if (quad->quadTransform().IsScaleOrTranslation()) A few more thoughts: (1) Don't we ...
8 years ago (2012-12-03 23:37:52 UTC) #3
enne (OOO)
Are you planning to do this for tile draw quads too? If so, is there ...
8 years ago (2012-12-03 23:47:35 UTC) #4
enne (OOO)
I wanted to also add that this is pretty similar to what's being done for ...
8 years ago (2012-12-03 23:50:12 UTC) #5
whunt
https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc File cc/texture_layer_impl.cc (right): https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc#newcode49 cc/texture_layer_impl.cc:49: if (quad->quadTransform().IsScaleOrTranslation()) I added the isClipped check. I can ...
8 years ago (2012-12-04 00:01:24 UTC) #6
jamesr
I'd like to use the clipping + uv adjustments for render pass quads to land ...
8 years ago (2012-12-04 00:08:07 UTC) #7
jamesr
https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc File cc/texture_layer_impl.cc (right): https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc#newcode75 cc/texture_layer_impl.cc:75: // Perform clipping on the rect. On 2012/12/04 00:01:24, ...
8 years ago (2012-12-04 00:15:42 UTC) #8
whunt
https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc File cc/texture_layer_impl.cc (right): https://codereview.chromium.org/11418297/diff/1/cc/texture_layer_impl.cc#newcode75 cc/texture_layer_impl.cc:75: // Perform clipping on the rect. Given that this ...
8 years ago (2012-12-04 19:35:04 UTC) #9
jamesr
lgtm but needs a bit more formatting tweaks before landing https://codereview.chromium.org/11418297/diff/3004/cc/texture_draw_quad.cc File cc/texture_draw_quad.cc (right): https://codereview.chromium.org/11418297/diff/3004/cc/texture_draw_quad.cc#newcode62 ...
8 years ago (2012-12-05 23:19:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/11418297/14001
8 years ago (2012-12-05 23:58:41 UTC) #11
jamesr
https://chromiumcodereview.appspot.com/11418297/diff/3004/cc/texture_draw_quad.h File cc/texture_draw_quad.h (right): https://chromiumcodereview.appspot.com/11418297/diff/3004/cc/texture_draw_quad.h#newcode44 cc/texture_draw_quad.h:44: bool const PerformClipping(); actually I missed this first time ...
8 years ago (2012-12-06 00:02:56 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-06 04:40:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/whunt@chromium.org/11418297/30001
8 years ago (2012-12-07 18:12:16 UTC) #14
commit-bot: I haz the power
8 years ago (2012-12-07 21:47:18 UTC) #15
Message was sent while issue was closed.
Change committed as 171850

Powered by Google App Engine
This is Rietveld 408576698