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

Issue 11635037: cc: When the transform's scale is unknown, draw render surfaces at the resolution of the screen. (Closed)

Created:
8 years ago by danakj
Modified:
8 years ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, piman, backer, Vangelis Kokkevis, shawnsingh
Visibility:
Public.

Description

cc: When the transform's scale is unknown, draw into render surfaces at the scale of the screen. When the transform's scale is not known, we have to use some fixed value. We were using 1.0 but this means if the transform is close to the identity, the layers in the surface are rendered small, and then scaled up when the surface is drawn to the screen by the device scale factor and page scale factor. This makes for fuzziness. So, when the transform's scale is not known we should use the device scale and page scale factors as the default value. This guarantees that the transforms from the contents of the surface's subtree to the screen will not require scaling up more than any CSS scales specified by the HTML. Tests: LayerTreeHostCommonTest.verifySurfaceLayerTransformsInHighDPI BUG=167021 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174327

Patch Set 1 #

Total comments: 4

Patch Set 2 : 0. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -9 lines) Patch
M cc/layer_tree_host_common.cc View 1 2 chunks +2 lines, -2 lines 1 comment Download
M cc/layer_tree_host_common_unittest.cc View 5 chunks +76 lines, -4 lines 0 comments Download
M cc/math_util.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/math_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
danakj
8 years ago (2012-12-20 04:57:11 UTC) #1
enne (OOO)
https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc#newcode393 cc/layer_tree_host_common.cc:393: gfx::Vector2dF transformScale = MathUtil::computeTransform2dScaleComponents(combinedTransform, 1.f); This is 1, because ...
8 years ago (2012-12-20 19:43:36 UTC) #2
danakj
https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc#newcode393 cc/layer_tree_host_common.cc:393: gfx::Vector2dF transformScale = MathUtil::computeTransform2dScaleComponents(combinedTransform, 1.f); On 2012/12/20 19:43:36, enne ...
8 years ago (2012-12-20 22:42:30 UTC) #3
enne (OOO)
lgtm https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc#newcode393 cc/layer_tree_host_common.cc:393: gfx::Vector2dF transformScale = MathUtil::computeTransform2dScaleComponents(combinedTransform, 1.f); On 2012/12/20 22:42:30, ...
8 years ago (2012-12-20 23:18:48 UTC) #4
danakj
https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://codereview.chromium.org/11635037/diff/1/cc/layer_tree_host_common.cc#newcode393 cc/layer_tree_host_common.cc:393: gfx::Vector2dF transformScale = MathUtil::computeTransform2dScaleComponents(combinedTransform, 1.f); On 2012/12/20 23:18:48, enne ...
8 years ago (2012-12-20 23:20:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11635037/1
8 years ago (2012-12-20 23:23:43 UTC) #6
danakj
https://chromiumcodereview.appspot.com/11635037/diff/11003/cc/layer_tree_host_common.cc File cc/layer_tree_host_common.cc (right): https://chromiumcodereview.appspot.com/11635037/diff/11003/cc/layer_tree_host_common.cc#newcode393 cc/layer_tree_host_common.cc:393: gfx::Vector2dF transformScale = MathUtil::computeTransform2dScaleComponents(combinedTransform, 0.f); Now switch to 0.f ...
8 years ago (2012-12-20 23:27:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11635037/11003
8 years ago (2012-12-20 23:27:45 UTC) #8
commit-bot: I haz the power
8 years ago (2012-12-21 02:59:14 UTC) #9
Message was sent while issue was closed.
Change committed as 174327

Powered by Google App Engine
This is Rietveld 408576698