diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 03:29:29 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-25 03:29:29 +0000 |
commit | ed511b8dbf23c216aa87e11e9d49c1e69d82de60 (patch) | |
tree | ff1bdc0c8c74a0357c07847d4f3e9f32190930df /cc/test/render_pass_test_utils.cc | |
parent | 69fc57001ee3a1496830488254710865bc8f52b3 (diff) | |
download | chromium_src-ed511b8dbf23c216aa87e11e9d49c1e69d82de60.zip chromium_src-ed511b8dbf23c216aa87e11e9d49c1e69d82de60.tar.gz chromium_src-ed511b8dbf23c216aa87e11e9d49c1e69d82de60.tar.bz2 |
cc: Fix capitalization style in chromified files.
Style-only change.
Many already-chromified files missed a variable or function name
here and there. This grabs (hopefully) all of them.
For the record, I found these with:
git gs '[^a-zA-Z0-9_>\."][a-jl-z]\+[A-Z][A-Za-z0-9_]*\($\|[ !=;,\.^&*)"]\)'
R=enne
BUG=
Review URL: https://chromiumcodereview.appspot.com/12676029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190326 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 | 75 |
1 files changed, 38 insertions, 37 deletions
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc index f803b4c..e9614c4 100644 --- a/cc/test/render_pass_test_utils.cc +++ b/cc/test/render_pass_test_utils.cc @@ -15,61 +15,62 @@ namespace cc { -TestRenderPass* addRenderPass(RenderPassList& passList, +TestRenderPass* AddRenderPass(RenderPassList& pass_list, RenderPass::Id id, - const gfx::Rect& outputRect, - const gfx::Transform& rootTransform) { + gfx::Rect output_rect, + const gfx::Transform& root_transform) { scoped_ptr<TestRenderPass> pass(TestRenderPass::Create()); - pass->SetNew(id, outputRect, outputRect, rootTransform); + pass->SetNew(id, output_rect, output_rect, root_transform); TestRenderPass* saved = pass.get(); - passList.push_back(pass.PassAs<RenderPass>()); + pass_list.push_back(pass.PassAs<RenderPass>()); return saved; } -SolidColorDrawQuad* addQuad(TestRenderPass* pass, - const gfx::Rect& rect, +SolidColorDrawQuad* AddQuad(TestRenderPass* pass, + gfx::Rect rect, SkColor color) { - MockQuadCuller quadSink(&pass->quad_list, &pass->shared_quad_state_list); + MockQuadCuller quad_sink(&pass->quad_list, &pass->shared_quad_state_list); AppendQuadsData data(pass->id); - SharedQuadState* sharedState = - quadSink.UseSharedQuadState(SharedQuadState::Create()); - sharedState->SetAll(gfx::Transform(), rect.size(), rect, rect, false, 1); + SharedQuadState* shared_state = + quad_sink.UseSharedQuadState(SharedQuadState::Create()); + shared_state->SetAll(gfx::Transform(), rect.size(), rect, rect, false, 1); scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); - quad->SetNew(sharedState, rect, color); - SolidColorDrawQuad* quadPtr = quad.get(); - quadSink.Append(quad.PassAs<DrawQuad>(), &data); - return quadPtr; + quad->SetNew(shared_state, rect, color); + SolidColorDrawQuad* quad_ptr = quad.get(); + quad_sink.Append(quad.PassAs<DrawQuad>(), &data); + return quad_ptr; } -SolidColorDrawQuad* addClippedQuad(TestRenderPass* pass, - const gfx::Rect& rect, +SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass, + gfx::Rect rect, SkColor color) { - MockQuadCuller quadSink(&pass->quad_list, &pass->shared_quad_state_list); + MockQuadCuller quad_sink(&pass->quad_list, &pass->shared_quad_state_list); AppendQuadsData data(pass->id); - SharedQuadState* sharedState = - quadSink.UseSharedQuadState(SharedQuadState::Create()); - sharedState->SetAll(gfx::Transform(), rect.size(), rect, rect, true, 1); + SharedQuadState* shared_state = + quad_sink.UseSharedQuadState(SharedQuadState::Create()); + shared_state->SetAll(gfx::Transform(), rect.size(), rect, rect, true, 1); scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create(); - quad->SetNew(sharedState, rect, color); - SolidColorDrawQuad* quadPtr = quad.get(); - quadSink.Append(quad.PassAs<DrawQuad>(), &data); - return quadPtr; + quad->SetNew(shared_state, rect, color); + SolidColorDrawQuad* quad_ptr = quad.get(); + quad_sink.Append(quad.PassAs<DrawQuad>(), &data); + return quad_ptr; } -void addRenderPassQuad(TestRenderPass* toPass, - TestRenderPass* contributingPass) { - MockQuadCuller quadSink(&toPass->quad_list, &toPass->shared_quad_state_list); - AppendQuadsData data(toPass->id); - gfx::Rect outputRect = contributingPass->output_rect; - SharedQuadState* sharedState = - quadSink.UseSharedQuadState(SharedQuadState::Create()); - sharedState->SetAll( - gfx::Transform(), outputRect.size(), outputRect, outputRect, false, 1); +void AddRenderPassQuad(TestRenderPass* to_pass, + TestRenderPass* contributing_pass) { + MockQuadCuller quad_sink(&to_pass->quad_list, + &to_pass->shared_quad_state_list); + AppendQuadsData data(to_pass->id); + gfx::Rect output_rect = contributing_pass->output_rect; + SharedQuadState* shared_state = + quad_sink.UseSharedQuadState(SharedQuadState::Create()); + shared_state->SetAll( + gfx::Transform(), output_rect.size(), output_rect, output_rect, false, 1); scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); - quad->SetNew(sharedState, outputRect, contributingPass->id, false, 0, - outputRect, gfx::RectF(), WebKit::WebFilterOperations(), + quad->SetNew(shared_state, output_rect, contributing_pass->id, false, 0, + output_rect, gfx::RectF(), WebKit::WebFilterOperations(), skia::RefPtr<SkImageFilter>(), WebKit::WebFilterOperations()); - quadSink.Append(quad.PassAs<DrawQuad>(), &data); + quad_sink.Append(quad.PassAs<DrawQuad>(), &data); } } // namespace cc |