summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/trees/layer_tree_host_common.h')
-rw-r--r--cc/trees/layer_tree_host_common.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h
index 57ea16d..cd30b93 100644
--- a/cc/trees/layer_tree_host_common.h
+++ b/cc/trees/layer_tree_host_common.h
@@ -32,7 +32,7 @@ class CC_EXPORT LayerTreeHostCommon {
struct CalcDrawPropsInputs {
public:
CalcDrawPropsInputs(LayerType* root_layer,
- const gfx::Size& device_viewport_size,
+ gfx::Size device_viewport_size,
const gfx::Transform& device_transform,
float device_scale_factor,
float page_scale_factor,
@@ -72,12 +72,12 @@ class CC_EXPORT LayerTreeHostCommon {
: public CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType> {
CalcDrawPropsInputsForTesting(
LayerType* root_layer,
- const gfx::Size& device_viewport_size,
+ gfx::Size device_viewport_size,
const gfx::Transform& device_transform,
RenderSurfaceLayerListType* render_surface_layer_list);
CalcDrawPropsInputsForTesting(
LayerType* root_layer,
- const gfx::Size& device_viewport_size,
+ gfx::Size device_viewport_size,
RenderSurfaceLayerListType* render_surface_layer_list);
private:
@@ -126,7 +126,7 @@ class CC_EXPORT LayerTreeHostCommon {
// given transform.
template <typename LayerType>
static void ApplySublayerTransformAboutAnchor(const LayerType& layer,
- const gfx::Size& bounds,
+ gfx::Size bounds,
gfx::Transform* transform) {
if (!layer.sublayer_transform().IsIdentity()) {
transform->Translate(layer.anchor_point().x() * bounds.width(),
@@ -227,7 +227,7 @@ LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType,
RenderSurfaceLayerListType>::
CalcDrawPropsInputsForTesting(
LayerType* root_layer,
- const gfx::Size& device_viewport_size,
+ gfx::Size device_viewport_size,
const gfx::Transform& device_transform,
RenderSurfaceLayerListType* render_surface_layer_list)
: CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType>(
@@ -251,7 +251,7 @@ LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType,
RenderSurfaceLayerListType>::
CalcDrawPropsInputsForTesting(
LayerType* root_layer,
- const gfx::Size& device_viewport_size,
+ gfx::Size device_viewport_size,
RenderSurfaceLayerListType* render_surface_layer_list)
: CalcDrawPropsInputs<LayerType, RenderSurfaceLayerListType>(
root_layer,