Commit a427cd14 authored by danakj@chromium.org's avatar danakj@chromium.org

cc: Avoid needless Rect->RectF->Rect conversion in CalcDrawProps.

R=enne
BUG=342848

Review URL: https://codereview.chromium.org/338453003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276847 0039d316-1c4b-4281-b951-d872f2087c98
parent 13b16e22
...@@ -1770,7 +1770,7 @@ static void CalculateDrawPropertiesInternal( ...@@ -1770,7 +1770,7 @@ static void CalculateDrawPropertiesInternal(
layer_draw_properties.target_space_transform. layer_draw_properties.target_space_transform.
IsIdentityOrIntegerTranslation(); IsIdentityOrIntegerTranslation();
gfx::RectF content_rect(layer->content_bounds()); gfx::Rect content_rect(layer->content_bounds());
// full_hierarchy_matrix is the matrix that transforms objects between screen // full_hierarchy_matrix is the matrix that transforms objects between screen
// space (except projection matrix) and the most recent RenderSurfaceImpl's // space (except projection matrix) and the most recent RenderSurfaceImpl's
...@@ -2003,8 +2003,8 @@ static void CalculateDrawPropertiesInternal( ...@@ -2003,8 +2003,8 @@ static void CalculateDrawPropertiesInternal(
if (adjust_text_aa) if (adjust_text_aa)
layer_draw_properties.can_use_lcd_text = layer_can_use_lcd_text; layer_draw_properties.can_use_lcd_text = layer_can_use_lcd_text;
gfx::Rect rect_in_target_space = ToEnclosingRect( gfx::Rect rect_in_target_space =
MathUtil::MapClippedRect(layer->draw_transform(), content_rect)); MathUtil::MapEnclosingClippedRect(layer->draw_transform(), content_rect);
if (LayerClipsSubtree(layer)) { if (LayerClipsSubtree(layer)) {
layer_or_ancestor_clips_descendants = true; layer_or_ancestor_clips_descendants = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment