diff options
author | prashant.n@samsung.com <prashant.n@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-29 22:58:26 +0000 |
---|---|---|
committer | prashant.n@samsung.com <prashant.n@samsung.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-29 22:58:26 +0000 |
commit | 64348eae94a2d07e923aaa0262b6c47947ffa3b3 (patch) | |
tree | c75d0c39b289b4a2543426bbe4461cc3e7117c46 /cc/test/pixel_test_output_surface.h | |
parent | 44ea5317cf5920949c483be09f2931ae20cf23d1 (diff) | |
download | chromium_src-64348eae94a2d07e923aaa0262b6c47947ffa3b3.zip chromium_src-64348eae94a2d07e923aaa0262b6c47947ffa3b3.tar.gz chromium_src-64348eae94a2d07e923aaa0262b6c47947ffa3b3.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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247426
Review URL: https://codereview.chromium.org/145313006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/pixel_test_output_surface.h')
-rw-r--r-- | cc/test/pixel_test_output_surface.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/test/pixel_test_output_surface.h b/cc/test/pixel_test_output_surface.h index 2a4573a..d3ec612 100644 --- a/cc/test/pixel_test_output_surface.h +++ b/cc/test/pixel_test_output_surface.h @@ -16,10 +16,10 @@ class PixelTestOutputSurface : public OutputSurface { explicit PixelTestOutputSurface( scoped_ptr<SoftwareOutputDevice> software_device); - virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; + virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE; virtual bool HasExternalStencilTest() const OVERRIDE; - void set_surface_expansion_size(gfx::Size surface_expansion_size) { + void set_surface_expansion_size(const gfx::Size& surface_expansion_size) { surface_expansion_size_ = surface_expansion_size; } void set_has_external_stencil_test(bool has_test) { |