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

Issue 2231013002: ui/gfx mojo: Don't serialize the identity matrix (Closed)

Created:
4 years, 4 months ago by Fady Samuel
Modified:
4 years, 4 months ago
Reviewers:
Ian Vollick, Tom Sepez
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ui/gfx mojo: Don't serialize the identity matrix Identity transforms are the most common transform on the web (most things aren't transformed) and so we shouldn't spend a bunch of time serializing and deserializing (and validating) identity matrices. This improves deserialization performance of CompositorFrames with a lot of SharedQuadState or RenderPasses by between 5-15%. Where gfx::Transform isn't used as much, this change has a negligible impact. BUG=624459 Committed: https://crrev.com/7ca76d1cfb84ff3483540cf107bec90c99d8a90b Cr-Commit-Position: refs/heads/master@{#411099}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M ui/gfx/mojo/transform.mojom View 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/mojo/transform_struct_traits.h View 2 chunks +6 lines, -0 lines 3 comments Download

Messages

Total messages: 11 (3 generated)
Fady Samuel
+vollick@ for ui/gfx transform related change +tsepez@ for security.
4 years, 4 months ago (2016-08-10 14:11:10 UTC) #2
Ian Vollick
ui/gfx/ lgtm w/ nit. https://codereview.chromium.org/2231013002/diff/1/ui/gfx/mojo/transform_struct_traits.h File ui/gfx/mojo/transform_struct_traits.h (right): https://codereview.chromium.org/2231013002/diff/1/ui/gfx/mojo/transform_struct_traits.h#newcode18 ui/gfx/mojo/transform_struct_traits.h:18: static bool IsNull(const SkMatrix44& input) ...
4 years, 4 months ago (2016-08-10 15:02:34 UTC) #3
Ian Vollick
https://codereview.chromium.org/2231013002/diff/1/ui/gfx/mojo/transform_struct_traits.h File ui/gfx/mojo/transform_struct_traits.h (right): https://codereview.chromium.org/2231013002/diff/1/ui/gfx/mojo/transform_struct_traits.h#newcode18 ui/gfx/mojo/transform_struct_traits.h:18: static bool IsNull(const SkMatrix44& input) { return input.isIdentity(); } ...
4 years, 4 months ago (2016-08-10 15:13:57 UTC) #4
Fady Samuel
PTAL Tom! https://codereview.chromium.org/2231013002/diff/1/ui/gfx/mojo/transform_struct_traits.h File ui/gfx/mojo/transform_struct_traits.h (right): https://codereview.chromium.org/2231013002/diff/1/ui/gfx/mojo/transform_struct_traits.h#newcode18 ui/gfx/mojo/transform_struct_traits.h:18: static bool IsNull(const SkMatrix44& input) { return ...
4 years, 4 months ago (2016-08-10 15:19:14 UTC) #5
Tom Sepez
Clever. I don't see any security implications, so LGTM.
4 years, 4 months ago (2016-08-10 17:13:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2231013002/1
4 years, 4 months ago (2016-08-10 17:16:11 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-10 18:41:35 UTC) #9
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 18:43:29 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/7ca76d1cfb84ff3483540cf107bec90c99d8a90b
Cr-Commit-Position: refs/heads/master@{#411099}

Powered by Google App Engine
This is Rietveld 408576698