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

Issue 1135813005: Add detection for rotation and flip overlay transforms (Closed)

Created:
5 years, 7 months ago by halliwell
Modified:
5 years, 7 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add detection for rotation and flip overlay transforms Rotations and flips were listed in the enum, but not being allowed by OverlayCandidate::GetOverlayTransform. BUG= Committed: https://crrev.com/aa11128275a38f5161a65de0cd5affb31856330d Cr-Commit-Position: refs/heads/master@{#329719}

Patch Set 1 #

Total comments: 22

Patch Set 2 : GetXAis/GetYAxis plus some comment changes #

Patch Set 3 : Move Get*Axis to MathUtil, rename flipped->y_flipped #

Total comments: 11

Patch Set 4 : Nits, epsilon change, get->getFloat #

Patch Set 5 : Fix mojo surfaces unit test, chase flipped rename to TextureQuadState #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -46 lines) Patch
M cc/base/math_util.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M cc/base/math_util.cc View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/output/overlay_candidate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/output/overlay_candidate.cc View 1 2 3 3 chunks +51 lines, -5 lines 0 comments Download
M cc/output/overlay_strategy_common.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 chunks +91 lines, -9 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/quads/draw_quad_unittest.cc View 1 2 3 4 7 chunks +7 lines, -7 lines 0 comments Download
M cc/quads/texture_draw_quad.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M cc/quads/texture_draw_quad.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M components/surfaces/public/interfaces/quads.mojom View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/converters/surfaces/surfaces_type_converters.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/converters/surfaces/tests/surface_unittest.cc View 1 2 3 4 6 chunks +6 lines, -6 lines 0 comments Download
M ui/gfx/overlay_transform.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (10 generated)
halliwell
5 years, 7 months ago (2015-05-09 00:30:16 UTC) #2
danakj
+vollick for math, is there a more efficient way to tell if it's a flip/rotate ...
5 years, 7 months ago (2015-05-11 16:58:04 UTC) #4
Ian Vollick
math lgtm. https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc#newcode15 cc/output/overlay_candidate.cc:15: // Taken from SkMatrix44. On 2015/05/11 at ...
5 years, 7 months ago (2015-05-12 01:24:15 UTC) #5
halliwell
https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc#newcode15 cc/output/overlay_candidate.cc:15: // Taken from SkMatrix44. On 2015/05/12 01:24:15, vollick wrote: ...
5 years, 7 months ago (2015-05-12 01:57:09 UTC) #6
hendrikw
https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc#newcode15 cc/output/overlay_candidate.cc:15: // Taken from SkMatrix44. On 2015/05/12 01:24:15, vollick wrote: ...
5 years, 7 months ago (2015-05-12 02:12:29 UTC) #8
halliwell
https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc#newcode15 cc/output/overlay_candidate.cc:15: // Taken from SkMatrix44. On 2015/05/12 02:12:29, hendrikw wrote: ...
5 years, 7 months ago (2015-05-12 15:11:31 UTC) #9
hendrikw
https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc#newcode15 cc/output/overlay_candidate.cc:15: // Taken from SkMatrix44. On 2015/05/12 15:11:31, halliwell wrote: ...
5 years, 7 months ago (2015-05-12 16:12:39 UTC) #10
danakj
https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc#newcode53 cc/output/overlay_candidate.cc:53: bool flipped) { On 2015/05/12 16:12:39, hendrikw wrote: > ...
5 years, 7 months ago (2015-05-12 16:54:32 UTC) #11
halliwell
https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/1135813005/diff/1/cc/output/overlay_candidate.cc#newcode15 cc/output/overlay_candidate.cc:15: // Taken from SkMatrix44. On 2015/05/12 16:12:39, hendrikw wrote: ...
5 years, 7 months ago (2015-05-12 22:22:20 UTC) #12
hendrikw
> Well ... this number is actually smaller than std::epsilon, not larger ... but > ...
5 years, 7 months ago (2015-05-12 22:42:37 UTC) #13
danakj
https://codereview.chromium.org/1135813005/diff/40001/cc/base/math_util.cc File cc/base/math_util.cc (right): https://codereview.chromium.org/1135813005/diff/40001/cc/base/math_util.cc#newcode872 cc/base/math_util.cc:872: return gfx::Vector3dF(transform.matrix().get(0, 0), getFloat() for all of these https://codereview.chromium.org/1135813005/diff/40001/cc/base/math_util.h ...
5 years, 7 months ago (2015-05-12 23:32:15 UTC) #14
halliwell
On 2015/05/12 22:42:37, hendrikw wrote: > > Well ... this number is actually smaller than ...
5 years, 7 months ago (2015-05-13 00:49:37 UTC) #15
halliwell
https://codereview.chromium.org/1135813005/diff/40001/cc/base/math_util.cc File cc/base/math_util.cc (right): https://codereview.chromium.org/1135813005/diff/40001/cc/base/math_util.cc#newcode872 cc/base/math_util.cc:872: return gfx::Vector3dF(transform.matrix().get(0, 0), On 2015/05/12 23:32:15, danakj wrote: > ...
5 years, 7 months ago (2015-05-13 00:49:50 UTC) #16
halliwell
+ @wfh for cc_messages change
5 years, 7 months ago (2015-05-13 15:56:58 UTC) #18
Will Harris
content/common/cc_messages.h lgtm
5 years, 7 months ago (2015-05-13 16:00:29 UTC) #19
danakj
LGTM https://codereview.chromium.org/1135813005/diff/40001/cc/output/overlay_unittest.cc File cc/output/overlay_unittest.cc (right): https://codereview.chromium.org/1135813005/diff/40001/cc/output/overlay_unittest.cc#newcode566 cc/output/overlay_unittest.cc:566: rect.set_width(rect.width() / 2); On 2015/05/13 00:49:50, halliwell wrote: ...
5 years, 7 months ago (2015-05-13 16:29:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135813005/60001
5 years, 7 months ago (2015-05-13 17:09:03 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/88488)
5 years, 7 months ago (2015-05-13 17:27:40 UTC) #25
halliwell
On 2015/05/13 17:27:40, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 7 months ago (2015-05-13 18:26:07 UTC) #27
sky
LGTM
5 years, 7 months ago (2015-05-13 19:41:27 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1135813005/80001
5 years, 7 months ago (2015-05-13 20:35:26 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-13 21:58:55 UTC) #32
commit-bot: I haz the power
5 years, 7 months ago (2015-05-13 21:59:52 UTC) #33
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/aa11128275a38f5161a65de0cd5affb31856330d
Cr-Commit-Position: refs/heads/master@{#329719}

Powered by Google App Engine
This is Rietveld 408576698