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

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

Issue 1455023002: cc: Replace Pass() with std::move() in some subdirs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pass-cc
Patch Set: pass-cc2: . Created 5 years, 1 month 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
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/delegating_renderer.h" 5 #include "cc/output/delegating_renderer.h"
6 #include "cc/output/gl_renderer.h" 6 #include "cc/output/gl_renderer.h"
7 #include "cc/output/output_surface.h" 7 #include "cc/output/output_surface.h"
8 #include "cc/test/fake_output_surface_client.h" 8 #include "cc/test/fake_output_surface_client.h"
9 #include "cc/test/fake_renderer_client.h" 9 #include "cc/test/fake_renderer_client.h"
10 #include "cc/test/fake_resource_provider.h" 10 #include "cc/test/fake_resource_provider.h"
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 void TestOutputSurface::SwapBuffers(CompositorFrame* frame) { 37 void TestOutputSurface::SwapBuffers(CompositorFrame* frame) {
38 client_->DidSwapBuffers(); 38 client_->DidSwapBuffers();
39 client_->DidSwapBuffersComplete(); 39 client_->DidSwapBuffersComplete();
40 } 40 }
41 41
42 class MockContextProvider : public TestContextProvider { 42 class MockContextProvider : public TestContextProvider {
43 public: 43 public:
44 explicit MockContextProvider(scoped_ptr<TestWebGraphicsContext3D> context) 44 explicit MockContextProvider(scoped_ptr<TestWebGraphicsContext3D> context)
45 : TestContextProvider(context.Pass()) {} 45 : TestContextProvider(std::move(context)) {}
46 MOCK_METHOD0(DeleteCachedResources, void()); 46 MOCK_METHOD0(DeleteCachedResources, void());
47 47
48 protected: 48 protected:
49 ~MockContextProvider() {} 49 ~MockContextProvider() {}
50 }; 50 };
51 51
52 template <class T> 52 template <class T>
53 scoped_ptr<Renderer> CreateRenderer(RendererClient* client, 53 scoped_ptr<Renderer> CreateRenderer(RendererClient* client,
54 const RendererSettings* settings, 54 const RendererSettings* settings,
55 OutputSurface* output_surface, 55 OutputSurface* output_surface,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 EXPECT_CALL(*(this->context_provider_.get()), DeleteCachedResources()) 107 EXPECT_CALL(*(this->context_provider_.get()), DeleteCachedResources())
108 .Times(1); 108 .Times(1);
109 109
110 EXPECT_TRUE(this->renderer_->visible()); 110 EXPECT_TRUE(this->renderer_->visible());
111 this->renderer_->SetVisible(false); 111 this->renderer_->SetVisible(false);
112 EXPECT_FALSE(this->renderer_->visible()); 112 EXPECT_FALSE(this->renderer_->visible());
113 } 113 }
114 114
115 } // namespace 115 } // namespace
116 } // namespace cc 116 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698