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

Issue 11783094: cc: Add point-based UV coordinate on TextureLayer (Closed)

Created:
7 years, 11 months ago by Jerome
Modified:
7 years, 11 months ago
CC:
chromium-reviews, jonathan.backer, Ian Vollick, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Add point-based UV coordinate on TextureLayer Previously, the uv coordinates was using gfx::RectF as a struct. This was limitating because it could not handle negative width and heights. Soring them as 2 gfx::PointF for the Top-Left and Bottom-Right points aleviate that restriction. The current implementation of the phone UI rely on this feature. BUG=168927 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=177288

Patch Set 1 #

Total comments: 6

Patch Set 2 : fixed unittest and abreviations #

Total comments: 27

Patch Set 3 : fixing danakj comments #

Total comments: 4

Patch Set 4 : Added unittest for clipped texture quad #

Total comments: 20

Patch Set 5 : nits and additionnal comments in unittest #

Total comments: 8

Patch Set 6 : Detailed comments #

Patch Set 7 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -73 lines) Patch
M cc/draw_quad_unittest.cc View 1 2 3 4 5 6 1 chunk +76 lines, -5 lines 0 comments Download
M cc/gl_renderer.cc View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download
M cc/heads_up_display_layer_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M cc/nine_patch_layer_impl.cc View 1 chunk +8 lines, -8 lines 0 comments Download
M cc/nine_patch_layer_impl_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/scrollbar_layer_impl.cc View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M cc/software_renderer.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M cc/test/render_pass_test_common.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/texture_draw_quad.h View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M cc/texture_draw_quad.cc View 1 2 3 4 5 6 5 chunks +23 lines, -12 lines 0 comments Download
M cc/texture_layer.h View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M cc/texture_layer.cc View 1 2 3 chunks +7 lines, -4 lines 0 comments Download
M cc/texture_layer_impl.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M cc/texture_layer_impl.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M cc/video_layer_impl.cc View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/common/cc_messages_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin_compositing_helper.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
M ui/gfx/size_base_impl.h View 1 2 chunks +0 lines, -7 lines 0 comments Download
M webkit/compositor_bindings/web_external_texture_layer_impl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
Jerome
Removed limitation on the UV coordinates for the TextureLayer (using negative sized rects). This is ...
7 years, 11 months ago (2013-01-10 17:29:22 UTC) #1
piman
ui/compositor LGTM. Note, you probably have non-compiling or failing tests with the change, you'll want ...
7 years, 11 months ago (2013-01-10 17:52:06 UTC) #2
danakj
i like the idea, tho not the abbreviations. enne@ can you review this please? https://codereview.chromium.org/11783094/diff/1/cc/video_layer_impl.cc ...
7 years, 11 months ago (2013-01-10 18:12:26 UTC) #3
Jerome
https://codereview.chromium.org/11783094/diff/1/cc/video_layer_impl.cc File cc/video_layer_impl.cc (right): https://codereview.chromium.org/11783094/diff/1/cc/video_layer_impl.cc#newcode227 cc/video_layer_impl.cc:227: gfx::PointF uvtl(0, 0); On 2013/01/10 18:12:26, danakj wrote: > ...
7 years, 11 months ago (2013-01-10 19:21:55 UTC) #4
danakj
https://codereview.chromium.org/11783094/diff/5001/cc/nine_patch_layer_impl_unittest.cc File cc/nine_patch_layer_impl_unittest.cc (right): https://codereview.chromium.org/11783094/diff/5001/cc/nine_patch_layer_impl_unittest.cc#newcode87 cc/nine_patch_layer_impl_unittest.cc:87: gfx::RectF texRect(texQuad->uv_top_left, uvSize); you can use this from rect_f.h ...
7 years, 11 months ago (2013-01-11 02:21:51 UTC) #5
Jerome
https://codereview.chromium.org/11783094/diff/5001/cc/nine_patch_layer_impl_unittest.cc File cc/nine_patch_layer_impl_unittest.cc (right): https://codereview.chromium.org/11783094/diff/5001/cc/nine_patch_layer_impl_unittest.cc#newcode87 cc/nine_patch_layer_impl_unittest.cc:87: gfx::RectF texRect(texQuad->uv_top_left, uvSize); On 2013/01/11 02:21:51, danakj wrote: > ...
7 years, 11 months ago (2013-01-11 18:00:01 UTC) #6
danakj
https://codereview.chromium.org/11783094/diff/5001/cc/texture_draw_quad.cc File cc/texture_draw_quad.cc (right): https://codereview.chromium.org/11783094/diff/5001/cc/texture_draw_quad.cc#newcode99 cc/texture_draw_quad.cc:99: float u_scale = (uv_bottom_right.x() - uv_top_left.x()) / rectF.width(); On ...
7 years, 11 months ago (2013-01-11 20:00:12 UTC) #7
Jerome
ping :)
7 years, 11 months ago (2013-01-14 17:23:13 UTC) #8
enne (OOO)
https://codereview.chromium.org/11783094/diff/15001/cc/texture_draw_quad.cc File cc/texture_draw_quad.cc (right): https://codereview.chromium.org/11783094/diff/15001/cc/texture_draw_quad.cc#newcode99 cc/texture_draw_quad.cc:99: /* ... https://codereview.chromium.org/11783094/diff/15001/cc/texture_draw_quad.cc#newcode109 cc/texture_draw_quad.cc:109: gfx::Vector2dF uv_scale(uv_bottom_right - uv_top_left); Are ...
7 years, 11 months ago (2013-01-14 17:58:39 UTC) #9
Jerome
Added unittests. https://codereview.chromium.org/11783094/diff/15001/cc/texture_draw_quad.cc File cc/texture_draw_quad.cc (right): https://codereview.chromium.org/11783094/diff/15001/cc/texture_draw_quad.cc#newcode99 cc/texture_draw_quad.cc:99: /* Whoops... https://codereview.chromium.org/11783094/diff/15001/cc/texture_draw_quad.cc#newcode109 cc/texture_draw_quad.cc:109: gfx::Vector2dF uv_scale(uv_bottom_right - ...
7 years, 11 months ago (2013-01-14 23:47:07 UTC) #10
danakj
I'm quite happy with this CL modulo nits, but I'd like to be convinced of ...
7 years, 11 months ago (2013-01-15 01:48:42 UTC) #11
Jerome
All addressed. https://codereview.chromium.org/11783094/diff/20001/cc/draw_quad_unittest.cc File cc/draw_quad_unittest.cc (right): https://codereview.chromium.org/11783094/diff/20001/cc/draw_quad_unittest.cc#newcode409 cc/draw_quad_unittest.cc:409: gfx::PointF uvTopLeftClipped(0.26f, 0.3f); On 2013/01/15 01:48:42, danakj ...
7 years, 11 months ago (2013-01-15 17:58:11 UTC) #12
danakj
https://codereview.chromium.org/11783094/diff/28001/cc/draw_quad_unittest.cc File cc/draw_quad_unittest.cc (right): https://codereview.chromium.org/11783094/diff/28001/cc/draw_quad_unittest.cc#newcode398 cc/draw_quad_unittest.cc:398: // Original quad is at (30, 40) size 50*60 ...
7 years, 11 months ago (2013-01-15 22:39:09 UTC) #13
Jerome
Added math to the unittest comments to explain the expected values. https://codereview.chromium.org/11783094/diff/28001/cc/draw_quad_unittest.cc File cc/draw_quad_unittest.cc (right): ...
7 years, 11 months ago (2013-01-15 23:14:34 UTC) #14
danakj
Thanks, LGTM
7 years, 11 months ago (2013-01-15 23:21:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jscholler@chromium.org/11783094/33001
7 years, 11 months ago (2013-01-16 18:45:55 UTC) #16
commit-bot: I haz the power
Presubmit check for 11783094-33001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-16 18:46:16 UTC) #17
Jerome
enne: I need a lgtm on - webkit/compositor_bindings/ jschuh: I need an IPC security review ...
7 years, 11 months ago (2013-01-16 18:52:51 UTC) #18
jschuh
ipc security lgtm
7 years, 11 months ago (2013-01-16 18:55:45 UTC) #19
enne (OOO)
lgtm
7 years, 11 months ago (2013-01-16 18:56:49 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jscholler@chromium.org/11783094/33001
7 years, 11 months ago (2013-01-16 19:08:35 UTC) #21
commit-bot: I haz the power
Retried try job too often on linux_clang for step(s) compile
7 years, 11 months ago (2013-01-16 20:08:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jscholler@chromium.org/11783094/21023
7 years, 11 months ago (2013-01-16 22:14:54 UTC) #23
commit-bot: I haz the power
7 years, 11 months ago (2013-01-17 00:39:44 UTC) #24
Message was sent while issue was closed.
Change committed as 177288

Powered by Google App Engine
This is Rietveld 408576698