Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: cc/output/gl_renderer_unittest.cc

Issue 12676029: cc: Fix capitalization style in chromified files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/output/gl_renderer.h" 5 #include "cc/output/gl_renderer.h"
6 6
7 #include "cc/output/compositor_frame_metadata.h" 7 #include "cc/output/compositor_frame_metadata.h"
8 #include "cc/quads/draw_quad.h" 8 #include "cc/quads/draw_quad.h"
9 #include "cc/resources/prioritized_resource_manager.h" 9 #include "cc/resources/prioritized_resource_manager.h"
10 #include "cc/resources/resource_provider.h" 10 #include "cc/resources/resource_provider.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 611
612 // The remaining quads also use GL_LINEAR because nearest neighbor 612 // The remaining quads also use GL_LINEAR because nearest neighbor
613 // filtering is currently only used with tile quads. 613 // filtering is currently only used with tile quads.
614 EXPECT_CALL(*context, drawElements(_, _, _, _)).Times(6); 614 EXPECT_CALL(*context, drawElements(_, _, _, _)).Times(6);
615 } 615 }
616 616
617 cc::DirectRenderer::DrawingFrame drawingFrame; 617 cc::DirectRenderer::DrawingFrame drawingFrame;
618 renderer.BeginDrawingFrame(drawingFrame); 618 renderer.BeginDrawingFrame(drawingFrame);
619 EXPECT_EQ(context->activeTexture(), GL_TEXTURE0); 619 EXPECT_EQ(context->activeTexture(), GL_TEXTURE0);
620 620
621 for (cc::QuadList::backToFrontIterator it = pass->quad_list.backToFrontBegin (); 621 for (cc::QuadList::BackToFrontIterator it = pass->quad_list.BackToFrontBegin ();
622 it != pass->quad_list.backToFrontEnd(); ++it) { 622 it != pass->quad_list.BackToFrontEnd(); ++it) {
623 renderer.DoDrawQuad(drawingFrame, *it); 623 renderer.DoDrawQuad(drawingFrame, *it);
624 } 624 }
625 renderer.FinishDrawingQuadList(); 625 renderer.FinishDrawingQuadList();
626 EXPECT_EQ(context->activeTexture(), GL_TEXTURE0); 626 EXPECT_EQ(context->activeTexture(), GL_TEXTURE0);
627 Mock::VerifyAndClearExpectations(context); 627 Mock::VerifyAndClearExpectations(context);
628 } 628 }
629 629
630 class NoClearRootRenderPassFakeClient : public FakeRendererClient { 630 class NoClearRootRenderPassFakeClient : public FakeRendererClient {
631 public: 631 public:
632 virtual bool ShouldClearRootRenderPass() const OVERRIDE { return false; } 632 virtual bool ShouldClearRootRenderPass() const OVERRIDE { return false; }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 869
870 TEST_F(MockOutputSurfaceTestWithSendCompositorFrame, DrawFrame) 870 TEST_F(MockOutputSurfaceTestWithSendCompositorFrame, DrawFrame)
871 { 871 {
872 EXPECT_CALL(m_outputSurface, SendFrameToParentCompositor(_)) 872 EXPECT_CALL(m_outputSurface, SendFrameToParentCompositor(_))
873 .Times(1); 873 .Times(1);
874 DrawFrame(); 874 DrawFrame();
875 } 875 }
876 876
877 } // namespace 877 } // namespace
878 } // namespace cc 878 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698