diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 05:26:30 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-13 05:26:30 +0000 |
commit | 0d8c7eaaceb70fdcae0468a7a124407802f24c1a (patch) | |
tree | 4fe85cd9748892e03b93cd8523fd0b2f37c4f34d /cc/test/render_pass_test_utils.cc | |
parent | b5e2ea10ea05b825dbcc2c6acdd778b07c826749 (diff) | |
download | chromium_src-0d8c7eaaceb70fdcae0468a7a124407802f24c1a.zip chromium_src-0d8c7eaaceb70fdcae0468a7a124407802f24c1a.tar.gz chromium_src-0d8c7eaaceb70fdcae0468a7a124407802f24c1a.tar.bz2 |
cc: Rename QuadSink::Append to MaybeAppend.
This touches a lot of files, so keep it mindless. Then we can add
another append that does not do culling, and move callsites over
one at a time.
R=enne
BUG=344962
Review URL: https://codereview.chromium.org/196533010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256754 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/render_pass_test_utils.cc')
-rw-r--r-- | cc/test/render_pass_test_utils.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc index 8d0d955..679ce19 100644 --- a/cc/test/render_pass_test_utils.cc +++ b/cc/test/render_pass_test_utils.cc @@ -44,7 +44,7 @@ SolidColorDrawQuad* AddQuad(TestRenderPass* pass, scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); quad->SetNew(shared_state, rect, rect, color, false); SolidColorDrawQuad* quad_ptr = quad.get(); - quad_sink.Append(quad.PassAs<DrawQuad>()); + quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); return quad_ptr; } @@ -64,7 +64,7 @@ SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass, scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); quad->SetNew(shared_state, rect, rect, color, false); SolidColorDrawQuad* quad_ptr = quad.get(); - quad_sink.Append(quad.PassAs<DrawQuad>()); + quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); return quad_ptr; } @@ -80,7 +80,7 @@ SolidColorDrawQuad* AddTransformedQuad(TestRenderPass* pass, scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); quad->SetNew(shared_state, rect, rect, color, false); SolidColorDrawQuad* quad_ptr = quad.get(); - quad_sink.Append(quad.PassAs<DrawQuad>()); + quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); return quad_ptr; } @@ -109,7 +109,7 @@ void AddRenderPassQuad(TestRenderPass* to_pass, gfx::RectF(), FilterOperations(), FilterOperations()); - quad_sink.Append(quad.PassAs<DrawQuad>()); + quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); } void AddRenderPassQuad(TestRenderPass* to_pass, @@ -140,7 +140,7 @@ void AddRenderPassQuad(TestRenderPass* to_pass, gfx::RectF(), filters, FilterOperations()); - quad_sink.Append(quad.PassAs<DrawQuad>()); + quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); } } // namespace cc |