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

Side by Side Diff: cc/output/delegating_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/delegating_renderer.cc ('k') | cc/output/direct_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 6
7 #include "cc/test/fake_output_surface.h" 7 #include "cc/test/fake_output_surface.h"
8 #include "cc/test/layer_tree_test.h" 8 #include "cc/test/layer_tree_test.h"
9 #include "cc/test/render_pass_test_utils.h" 9 #include "cc/test/render_pass_test_utils.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class DelegatingRendererTest : public LayerTreeTest { 14 class DelegatingRendererTest : public LayerTreeTest {
15 public: 15 public:
16 DelegatingRendererTest() : LayerTreeTest(), output_surface_(NULL) {} 16 DelegatingRendererTest() : LayerTreeTest(), output_surface_(NULL) {}
17 ~DelegatingRendererTest() override {} 17 ~DelegatingRendererTest() override {}
18 18
19 scoped_ptr<OutputSurface> CreateOutputSurface() override { 19 scoped_ptr<OutputSurface> CreateOutputSurface() override {
20 scoped_ptr<FakeOutputSurface> output_surface = 20 scoped_ptr<FakeOutputSurface> output_surface =
21 FakeOutputSurface::CreateDelegating3d(); 21 FakeOutputSurface::CreateDelegating3d();
22 output_surface_ = output_surface.get(); 22 output_surface_ = output_surface.get();
23 return output_surface.Pass(); 23 return std::move(output_surface);
24 } 24 }
25 25
26 protected: 26 protected:
27 TestWebGraphicsContext3D* context3d_; 27 TestWebGraphicsContext3D* context3d_;
28 FakeOutputSurface* output_surface_; 28 FakeOutputSurface* output_surface_;
29 }; 29 };
30 30
31 class DelegatingRendererTestDraw : public DelegatingRendererTest { 31 class DelegatingRendererTestDraw : public DelegatingRendererTest {
32 public: 32 public:
33 void BeginTest() override { 33 void BeginTest() override {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 EXPECT_EQ(24u, last_frame.delegated_frame_data->resource_list.size()); 122 EXPECT_EQ(24u, last_frame.delegated_frame_data->resource_list.size());
123 123
124 EndTest(); 124 EndTest();
125 } 125 }
126 }; 126 };
127 127
128 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F( 128 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(
129 DelegatingRendererTestResources); 129 DelegatingRendererTestResources);
130 130
131 } // namespace cc 131 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698