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

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

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/direct_renderer.h » ('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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include "cc/test/fake_output_surface.h" 9 #include "cc/test/fake_output_surface.h"
10 #include "cc/test/layer_tree_test.h" 10 #include "cc/test/layer_tree_test.h"
11 #include "cc/test/render_pass_test_utils.h" 11 #include "cc/test/render_pass_test_utils.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class DelegatingRendererTest : public LayerTreeTest { 16 class DelegatingRendererTest : public LayerTreeTest {
17 public: 17 public:
18 DelegatingRendererTest() : LayerTreeTest(), output_surface_(NULL) {} 18 DelegatingRendererTest() : LayerTreeTest(), output_surface_(NULL) {}
19 ~DelegatingRendererTest() override {} 19 ~DelegatingRendererTest() override {}
20 20
21 scoped_ptr<OutputSurface> CreateOutputSurface() override { 21 std::unique_ptr<OutputSurface> CreateOutputSurface() override {
22 scoped_ptr<FakeOutputSurface> output_surface = 22 std::unique_ptr<FakeOutputSurface> output_surface =
23 FakeOutputSurface::CreateDelegating3d(); 23 FakeOutputSurface::CreateDelegating3d();
24 output_surface_ = output_surface.get(); 24 output_surface_ = output_surface.get();
25 return std::move(output_surface); 25 return std::move(output_surface);
26 } 26 }
27 27
28 protected: 28 protected:
29 TestWebGraphicsContext3D* context3d_; 29 TestWebGraphicsContext3D* context3d_;
30 FakeOutputSurface* output_surface_; 30 FakeOutputSurface* output_surface_;
31 }; 31 };
32 32
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 EXPECT_EQ(24u, last_frame.delegated_frame_data->resource_list.size()); 124 EXPECT_EQ(24u, last_frame.delegated_frame_data->resource_list.size());
125 125
126 EndTest(); 126 EndTest();
127 } 127 }
128 }; 128 };
129 129
130 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F( 130 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(
131 DelegatingRendererTestResources); 131 DelegatingRendererTestResources);
132 132
133 } // namespace cc 133 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/direct_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698