summaryrefslogtreecommitdiffstats
path: root/cc/layers
diff options
context:
space:
mode:
authorprashant.n@samsung.com <prashant.n@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-28 06:37:17 +0000
committerprashant.n@samsung.com <prashant.n@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-28 06:37:17 +0000
commitc93cbb62f684183e0e5689a9fa35619daac10f7b (patch)
tree8002e049a31ad5cad79f63d19fe1f79b68b8ae2f /cc/layers
parent22a9610ffaed4d7690463d2f6f710d46c206c70f (diff)
downloadchromium_src-c93cbb62f684183e0e5689a9fa35619daac10f7b.zip
chromium_src-c93cbb62f684183e0e5689a9fa35619daac10f7b.tar.gz
chromium_src-c93cbb62f684183e0e5689a9fa35619daac10f7b.tar.bz2
[#7] Pass gfx::Size by const ref.
Any struct of size > 4 bytes should be passed by const ref. Passing by ref for these structs is faster than passing by value, especially when invoking function has multiple parameters and some other scenarios mentioned in the bug. BUG=159273 Review URL: https://codereview.chromium.org/145313006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247426 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers')
-rw-r--r--cc/layers/delegated_renderer_layer.cc2
-rw-r--r--cc/layers/delegated_renderer_layer.h2
-rw-r--r--cc/layers/delegated_renderer_layer_impl.cc6
-rw-r--r--cc/layers/delegated_renderer_layer_impl.h8
-rw-r--r--cc/layers/heads_up_display_layer.cc2
-rw-r--r--cc/layers/heads_up_display_layer.h2
-rw-r--r--cc/layers/io_surface_layer.cc2
-rw-r--r--cc/layers/io_surface_layer.h2
-rw-r--r--cc/layers/io_surface_layer_impl.cc2
-rw-r--r--cc/layers/io_surface_layer_impl.h2
-rw-r--r--cc/layers/layer.cc2
-rw-r--r--cc/layers/layer.h2
-rw-r--r--cc/layers/layer_impl.cc4
-rw-r--r--cc/layers/layer_impl.h4
-rw-r--r--cc/layers/layer_position_constraint_unittest.cc2
-rw-r--r--cc/layers/nine_patch_layer_impl_unittest.cc4
-rw-r--r--cc/layers/picture_layer_impl.cc2
-rw-r--r--cc/layers/picture_layer_impl.h2
-rw-r--r--cc/layers/picture_layer_impl_unittest.cc6
-rw-r--r--cc/layers/scrollbar_layer_unittest.cc2
-rw-r--r--cc/layers/tiled_layer.cc4
-rw-r--r--cc/layers/tiled_layer.h2
-rw-r--r--cc/layers/tiled_layer_impl_unittest.cc12
-rw-r--r--cc/layers/ui_resource_layer_impl.cc2
-rw-r--r--cc/layers/ui_resource_layer_impl.h2
-rw-r--r--cc/layers/ui_resource_layer_impl_unittest.cc4
26 files changed, 44 insertions, 42 deletions
diff --git a/cc/layers/delegated_renderer_layer.cc b/cc/layers/delegated_renderer_layer.cc
index 6616b9b..aaee787 100644
--- a/cc/layers/delegated_renderer_layer.cc
+++ b/cc/layers/delegated_renderer_layer.cc
@@ -86,7 +86,7 @@ void DelegatedRendererLayer::ProviderHasNewFrame() {
SetNextCommitWaitsForActivation();
}
-void DelegatedRendererLayer::SetDisplaySize(gfx::Size size) {
+void DelegatedRendererLayer::SetDisplaySize(const gfx::Size& size) {
if (display_size_ == size)
return;
display_size_ = size;
diff --git a/cc/layers/delegated_renderer_layer.h b/cc/layers/delegated_renderer_layer.h
index dc9dfee..a0b67df 100644
--- a/cc/layers/delegated_renderer_layer.h
+++ b/cc/layers/delegated_renderer_layer.h
@@ -33,7 +33,7 @@ class CC_EXPORT DelegatedRendererLayer : public Layer {
// layer's origin. This must always contain at least the layer's bounds. A
// value of (0, 0) implies that the frame should be displayed to fit exactly
// in the layer's bounds.
- void SetDisplaySize(gfx::Size size);
+ void SetDisplaySize(const gfx::Size& size);
// Called by the DelegatedFrameProvider when a new frame is available to be
// picked up.
diff --git a/cc/layers/delegated_renderer_layer_impl.cc b/cc/layers/delegated_renderer_layer_impl.cc
index e4de653..418e02b 100644
--- a/cc/layers/delegated_renderer_layer_impl.cc
+++ b/cc/layers/delegated_renderer_layer_impl.cc
@@ -155,7 +155,7 @@ void DelegatedRendererLayerImpl::SetFrameData(
have_render_passes_to_push_ = true;
}
-void DelegatedRendererLayerImpl::SetDisplaySize(gfx::Size size) {
+void DelegatedRendererLayerImpl::SetDisplaySize(const gfx::Size& size) {
if (display_size_ == size)
return;
display_size_ = size;
@@ -197,7 +197,7 @@ void DelegatedRendererLayerImpl::ReleaseResources() {
}
gfx::Transform DelegatedRendererLayerImpl::DelegatedFrameToLayerSpaceTransform(
- gfx::Size frame_size) const {
+ const gfx::Size& frame_size) const {
gfx::Size display_size = display_size_.IsEmpty() ? bounds() : display_size_;
gfx::Transform delegated_frame_to_layer_space_transform;
@@ -394,7 +394,7 @@ void DelegatedRendererLayerImpl::AppendRenderPassQuads(
QuadSink* quad_sink,
AppendQuadsData* append_quads_data,
const RenderPass* delegated_render_pass,
- gfx::Size frame_size) const {
+ const gfx::Size& frame_size) const {
const SharedQuadState* delegated_shared_quad_state = NULL;
SharedQuadState* output_shared_quad_state = NULL;
diff --git a/cc/layers/delegated_renderer_layer_impl.h b/cc/layers/delegated_renderer_layer_impl.h
index a82a1f7..e71fce8 100644
--- a/cc/layers/delegated_renderer_layer_impl.h
+++ b/cc/layers/delegated_renderer_layer_impl.h
@@ -48,7 +48,7 @@ class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
void SetFrameData(const DelegatedFrameData* frame_data,
const gfx::RectF& damage_in_frame);
- void SetDisplaySize(gfx::Size size);
+ void SetDisplaySize(const gfx::Size& size);
protected:
DelegatedRendererLayerImpl(LayerTreeImpl* tree_impl, int id);
@@ -77,14 +77,14 @@ class CC_EXPORT DelegatedRendererLayerImpl : public LayerImpl {
RenderPass::Id delegated_render_pass_id,
RenderPass::Id* output_render_pass_id) const;
- gfx::Transform DelegatedFrameToLayerSpaceTransform(gfx::Size frame_size)
- const;
+ gfx::Transform DelegatedFrameToLayerSpaceTransform(
+ const gfx::Size& frame_size) const;
void AppendRenderPassQuads(
QuadSink* quad_sink,
AppendQuadsData* append_quads_data,
const RenderPass* delegated_render_pass,
- gfx::Size frame_size) const;
+ const gfx::Size& frame_size) const;
// LayerImpl overrides.
virtual const char* LayerTypeAsString() const OVERRIDE;
diff --git a/cc/layers/heads_up_display_layer.cc b/cc/layers/heads_up_display_layer.cc
index 92486cc..ca63471 100644
--- a/cc/layers/heads_up_display_layer.cc
+++ b/cc/layers/heads_up_display_layer.cc
@@ -21,7 +21,7 @@ HeadsUpDisplayLayer::HeadsUpDisplayLayer() {}
HeadsUpDisplayLayer::~HeadsUpDisplayLayer() {}
void HeadsUpDisplayLayer::PrepareForCalculateDrawProperties(
- gfx::Size device_viewport, float device_scale_factor) {
+ const gfx::Size& device_viewport, float device_scale_factor) {
gfx::Size device_viewport_in_layout_pixels = gfx::Size(
device_viewport.width() / device_scale_factor,
device_viewport.height() / device_scale_factor);
diff --git a/cc/layers/heads_up_display_layer.h b/cc/layers/heads_up_display_layer.h
index 9116429..4750faf 100644
--- a/cc/layers/heads_up_display_layer.h
+++ b/cc/layers/heads_up_display_layer.h
@@ -18,7 +18,7 @@ class CC_EXPORT HeadsUpDisplayLayer : public ContentsScalingLayer {
static scoped_refptr<HeadsUpDisplayLayer> Create();
void PrepareForCalculateDrawProperties(
- gfx::Size device_viewport, float device_scale_factor);
+ const gfx::Size& device_viewport, float device_scale_factor);
virtual bool DrawsContent() const OVERRIDE;
diff --git a/cc/layers/io_surface_layer.cc b/cc/layers/io_surface_layer.cc
index 1e94515..209827d 100644
--- a/cc/layers/io_surface_layer.cc
+++ b/cc/layers/io_surface_layer.cc
@@ -17,7 +17,7 @@ IOSurfaceLayer::IOSurfaceLayer() : Layer(), io_surface_id_(0) {}
IOSurfaceLayer::~IOSurfaceLayer() {}
void IOSurfaceLayer::SetIOSurfaceProperties(uint32_t io_surface_id,
- gfx::Size size) {
+ const gfx::Size& size) {
io_surface_id_ = io_surface_id;
io_surface_size_ = size;
SetNeedsCommit();
diff --git a/cc/layers/io_surface_layer.h b/cc/layers/io_surface_layer.h
index e2e831a..9939f56 100644
--- a/cc/layers/io_surface_layer.h
+++ b/cc/layers/io_surface_layer.h
@@ -14,7 +14,7 @@ class CC_EXPORT IOSurfaceLayer : public Layer {
public:
static scoped_refptr<IOSurfaceLayer> Create();
- void SetIOSurfaceProperties(uint32_t io_surface_id, gfx::Size size);
+ void SetIOSurfaceProperties(uint32_t io_surface_id, const gfx::Size& size);
virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
OVERRIDE;
diff --git a/cc/layers/io_surface_layer_impl.cc b/cc/layers/io_surface_layer_impl.cc
index d2c5438..b8d6919 100644
--- a/cc/layers/io_surface_layer_impl.cc
+++ b/cc/layers/io_surface_layer_impl.cc
@@ -131,7 +131,7 @@ void IOSurfaceLayerImpl::ReleaseResources() {
}
void IOSurfaceLayerImpl::SetIOSurfaceProperties(unsigned io_surface_id,
- gfx::Size size) {
+ const gfx::Size& size) {
if (io_surface_id_ != io_surface_id)
io_surface_changed_ = true;
diff --git a/cc/layers/io_surface_layer_impl.h b/cc/layers/io_surface_layer_impl.h
index 5c096bb..efd7428 100644
--- a/cc/layers/io_surface_layer_impl.h
+++ b/cc/layers/io_surface_layer_impl.h
@@ -21,7 +21,7 @@ class CC_EXPORT IOSurfaceLayerImpl : public LayerImpl {
}
virtual ~IOSurfaceLayerImpl();
- void SetIOSurfaceProperties(unsigned io_surface_id, gfx::Size size);
+ void SetIOSurfaceProperties(unsigned io_surface_id, const gfx::Size& size);
virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
OVERRIDE;
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index f585006..79f00f1 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -324,7 +324,7 @@ int Layer::IndexOfChild(const Layer* reference) {
return -1;
}
-void Layer::SetBounds(gfx::Size size) {
+void Layer::SetBounds(const gfx::Size& size) {
DCHECK(IsPropertyChangeAllowed());
if (bounds() == size)
return;
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index df358f2..6b7eafc 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -116,7 +116,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// A layer's bounds are in logical, non-page-scaled pixels (however, the
// root layer's bounds are in physical pixels).
- void SetBounds(gfx::Size bounds);
+ void SetBounds(const gfx::Size& bounds);
gfx::Size bounds() const { return bounds_; }
void SetMasksToBounds(bool masks_to_bounds);
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index beb282d..42338e0 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -751,7 +751,7 @@ bool LayerImpl::IsActive() const {
return layer_tree_impl_->IsActiveTree();
}
-void LayerImpl::SetBounds(gfx::Size bounds) {
+void LayerImpl::SetBounds(const gfx::Size& bounds) {
if (bounds_ == bounds)
return;
@@ -996,7 +996,7 @@ void LayerImpl::SetUpdateRect(const gfx::RectF& update_rect) {
SetNeedsPushProperties();
}
-void LayerImpl::SetContentBounds(gfx::Size content_bounds) {
+void LayerImpl::SetContentBounds(const gfx::Size& content_bounds) {
if (this->content_bounds() == content_bounds)
return;
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 66fa84b..e1dfb7e 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -340,10 +340,10 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// contents scale to appropriate values. LayerImpl doesn't calculate any of
// them from the other values.
- void SetBounds(gfx::Size bounds);
+ void SetBounds(const gfx::Size& bounds);
gfx::Size bounds() const { return bounds_; }
- void SetContentBounds(gfx::Size content_bounds);
+ void SetContentBounds(const gfx::Size& content_bounds);
gfx::Size content_bounds() const { return draw_properties_.content_bounds; }
float contents_scale_x() const { return draw_properties_.contents_scale_x; }
diff --git a/cc/layers/layer_position_constraint_unittest.cc b/cc/layers/layer_position_constraint_unittest.cc
index 57e4c1d..efa81e2e 100644
--- a/cc/layers/layer_position_constraint_unittest.cc
+++ b/cc/layers/layer_position_constraint_unittest.cc
@@ -21,7 +21,7 @@ void SetLayerPropertiesForTesting(LayerImpl* layer,
const gfx::Transform& sublayer_transform,
const gfx::PointF& anchor,
const gfx::PointF& position,
- gfx::Size bounds,
+ const gfx::Size& bounds,
bool preserves3d) {
layer->SetTransform(transform);
layer->SetSublayerTransform(sublayer_transform);
diff --git a/cc/layers/nine_patch_layer_impl_unittest.cc b/cc/layers/nine_patch_layer_impl_unittest.cc
index 22f2c94..0755cfa 100644
--- a/cc/layers/nine_patch_layer_impl_unittest.cc
+++ b/cc/layers/nine_patch_layer_impl_unittest.cc
@@ -30,9 +30,9 @@ gfx::Rect ToRoundedIntRect(const gfx::RectF& rect_f) {
gfx::ToRoundedInt(rect_f.height()));
}
-void NinePatchLayerLayoutTest(gfx::Size bitmap_size,
+void NinePatchLayerLayoutTest(const gfx::Size& bitmap_size,
const gfx::Rect& aperture_rect,
- gfx::Size layer_size,
+ const gfx::Size& layer_size,
const gfx::Rect& border,
bool fill_center,
size_t expected_quad_size) {
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index c16b115..0826186f 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -514,7 +514,7 @@ const PictureLayerTiling* PictureLayerImpl::GetTwinTiling(
}
gfx::Size PictureLayerImpl::CalculateTileSize(
- gfx::Size content_bounds) const {
+ const gfx::Size& content_bounds) const {
if (is_mask_) {
int max_size = layer_tree_impl()->MaxTextureSize();
return gfx::Size(
diff --git a/cc/layers/picture_layer_impl.h b/cc/layers/picture_layer_impl.h
index 0491efb..c335426 100644
--- a/cc/layers/picture_layer_impl.h
+++ b/cc/layers/picture_layer_impl.h
@@ -58,7 +58,7 @@ class CC_EXPORT PictureLayerImpl
const gfx::Rect& content_rect) OVERRIDE;
virtual void UpdatePile(Tile* tile) OVERRIDE;
virtual gfx::Size CalculateTileSize(
- gfx::Size content_bounds) const OVERRIDE;
+ const gfx::Size& content_bounds) const OVERRIDE;
virtual const Region* GetInvalidation() OVERRIDE;
virtual const PictureLayerTiling* GetTwinTiling(
const PictureLayerTiling* tiling) const OVERRIDE;
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index 8c6412d..c3b569d 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -57,7 +57,7 @@ class PictureLayerImplTest : public testing::Test {
host_impl_.InitializeRenderer(CreateFakeOutputSurface());
}
- void SetupDefaultTrees(gfx::Size layer_bounds) {
+ void SetupDefaultTrees(const gfx::Size& layer_bounds) {
gfx::Size tile_size(100, 100);
scoped_refptr<FakePicturePileImpl> pending_pile =
@@ -76,8 +76,8 @@ class PictureLayerImplTest : public testing::Test {
host_impl_.active_tree()->LayerById(id_));
}
- void SetupDefaultTreesWithFixedTileSize(gfx::Size layer_bounds,
- gfx::Size tile_size) {
+ void SetupDefaultTreesWithFixedTileSize(const gfx::Size& layer_bounds,
+ const gfx::Size& tile_size) {
SetupDefaultTrees(layer_bounds);
pending_layer_->set_fixed_tile_size(tile_size);
active_layer_->set_fixed_tile_size(tile_size);
diff --git a/cc/layers/scrollbar_layer_unittest.cc b/cc/layers/scrollbar_layer_unittest.cc
index 4fab625..bb76720 100644
--- a/cc/layers/scrollbar_layer_unittest.cc
+++ b/cc/layers/scrollbar_layer_unittest.cc
@@ -453,7 +453,7 @@ class ScrollbarLayerTestMaxTextureSize : public LayerTreeTest {
public:
ScrollbarLayerTestMaxTextureSize() {}
- void SetScrollbarBounds(gfx::Size bounds) { bounds_ = bounds; }
+ void SetScrollbarBounds(const gfx::Size& bounds) { bounds_ = bounds; }
virtual void BeginTest() OVERRIDE {
scoped_ptr<Scrollbar> scrollbar(new FakeScrollbar);
diff --git a/cc/layers/tiled_layer.cc b/cc/layers/tiled_layer.cc
index 51bf212..2507470 100644
--- a/cc/layers/tiled_layer.cc
+++ b/cc/layers/tiled_layer.cc
@@ -158,7 +158,9 @@ void TiledLayer::UpdateBounds() {
InvalidateContentRect(new_rects.rect());
}
-void TiledLayer::SetTileSize(gfx::Size size) { tiler_->SetTileSize(size); }
+void TiledLayer::SetTileSize(const gfx::Size& size) {
+ tiler_->SetTileSize(size);
+}
void TiledLayer::SetBorderTexelOption(
LayerTilingData::BorderTexelOption border_texel_option) {
diff --git a/cc/layers/tiled_layer.h b/cc/layers/tiled_layer.h
index f2f7e96..50e2b67 100644
--- a/cc/layers/tiled_layer.h
+++ b/cc/layers/tiled_layer.h
@@ -46,7 +46,7 @@ class CC_EXPORT TiledLayer : public ContentsScalingLayer {
void UpdateBounds();
// Exposed to subclasses for testing.
- void SetTileSize(gfx::Size size);
+ void SetTileSize(const gfx::Size& size);
void SetTextureFormat(ResourceFormat texture_format) {
texture_format_ = texture_format;
}
diff --git a/cc/layers/tiled_layer_impl_unittest.cc b/cc/layers/tiled_layer_impl_unittest.cc
index 377b04d..948ab37 100644
--- a/cc/layers/tiled_layer_impl_unittest.cc
+++ b/cc/layers/tiled_layer_impl_unittest.cc
@@ -23,8 +23,8 @@ class TiledLayerImplTest : public testing::Test {
TiledLayerImplTest() : host_impl_(&proxy_) {}
scoped_ptr<TiledLayerImpl> CreateLayerNoTiles(
- gfx::Size tile_size,
- gfx::Size layer_size,
+ const gfx::Size& tile_size,
+ const gfx::Size& layer_size,
LayerTilingData::BorderTexelOption border_texels) {
scoped_ptr<TiledLayerImpl> layer =
TiledLayerImpl::Create(host_impl_.active_tree(), 1);
@@ -46,8 +46,8 @@ class TiledLayerImplTest : public testing::Test {
// Create a default tiled layer with textures for all tiles and a default
// visibility of the entire layer size.
scoped_ptr<TiledLayerImpl> CreateLayer(
- gfx::Size tile_size,
- gfx::Size layer_size,
+ const gfx::Size& tile_size,
+ const gfx::Size& layer_size,
LayerTilingData::BorderTexelOption border_texels) {
scoped_ptr<TiledLayerImpl> layer =
CreateLayerNoTiles(tile_size, layer_size, border_texels);
@@ -69,8 +69,8 @@ class TiledLayerImplTest : public testing::Test {
void GetQuads(QuadList* quads,
SharedQuadStateList* shared_states,
- gfx::Size tile_size,
- gfx::Size layer_size,
+ const gfx::Size& tile_size,
+ const gfx::Size& layer_size,
LayerTilingData::BorderTexelOption border_texel_option,
const gfx::Rect& visible_content_rect) {
scoped_ptr<TiledLayerImpl> layer =
diff --git a/cc/layers/ui_resource_layer_impl.cc b/cc/layers/ui_resource_layer_impl.cc
index 8a45eaa..ad7fd2c 100644
--- a/cc/layers/ui_resource_layer_impl.cc
+++ b/cc/layers/ui_resource_layer_impl.cc
@@ -49,7 +49,7 @@ void UIResourceLayerImpl::SetUIResourceId(UIResourceId uid) {
NoteLayerPropertyChanged();
}
-void UIResourceLayerImpl::SetImageBounds(gfx::Size image_bounds) {
+void UIResourceLayerImpl::SetImageBounds(const gfx::Size& image_bounds) {
// This check imposes an ordering on the call sequence. An UIResource must
// exist before SetImageBounds can be called.
DCHECK(ui_resource_id_);
diff --git a/cc/layers/ui_resource_layer_impl.h b/cc/layers/ui_resource_layer_impl.h
index b8b06d9..c61df47 100644
--- a/cc/layers/ui_resource_layer_impl.h
+++ b/cc/layers/ui_resource_layer_impl.h
@@ -30,7 +30,7 @@ class CC_EXPORT UIResourceLayerImpl : public LayerImpl {
void SetUIResourceId(UIResourceId uid);
- void SetImageBounds(gfx::Size image_bounds);
+ void SetImageBounds(const gfx::Size& image_bounds);
// Sets a UV transform to be used at draw time. Defaults to (0, 0) and (1, 1).
void SetUV(const gfx::PointF& top_left, const gfx::PointF& bottom_right);
diff --git a/cc/layers/ui_resource_layer_impl_unittest.cc b/cc/layers/ui_resource_layer_impl_unittest.cc
index 4c55f1d..596cb3b 100644
--- a/cc/layers/ui_resource_layer_impl_unittest.cc
+++ b/cc/layers/ui_resource_layer_impl_unittest.cc
@@ -21,8 +21,8 @@ namespace {
scoped_ptr<UIResourceLayerImpl> GenerateUIResourceLayer(
FakeUIResourceLayerTreeHostImpl* host_impl,
- gfx::Size bitmap_size,
- gfx::Size layer_size,
+ const gfx::Size& bitmap_size,
+ const gfx::Size& layer_size,
bool opaque,
UIResourceId uid) {
gfx::Rect visible_content_rect(layer_size);