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

Side by Side Diff: cc/test/fake_channel_impl.h

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/test/cc_test_suite.h ('k') | cc/test/fake_channel_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CC_TEST_FAKE_CHANNEL_IMPL_H_ 5 #ifndef CC_TEST_FAKE_CHANNEL_IMPL_H_
6 #define CC_TEST_FAKE_CHANNEL_IMPL_H_ 6 #define CC_TEST_FAKE_CHANNEL_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/trees/channel_impl.h" 9 #include "cc/trees/channel_impl.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class FakeChannelImpl : public ChannelImpl { 13 class FakeChannelImpl : public ChannelImpl {
14 public: 14 public:
15 FakeChannelImpl(); 15 FakeChannelImpl();
16 16
17 ~FakeChannelImpl() override {} 17 ~FakeChannelImpl() override {}
18 18
19 void DidCompleteSwapBuffers() override {} 19 void DidCompleteSwapBuffers() override {}
20 void SetRendererCapabilitiesMainCopy( 20 void SetRendererCapabilitiesMainCopy(
21 const RendererCapabilities& capabilities) override {} 21 const RendererCapabilities& capabilities) override {}
22 void BeginMainFrameNotExpectedSoon() override {} 22 void BeginMainFrameNotExpectedSoon() override {}
23 void DidCommitAndDrawFrame() override {} 23 void DidCommitAndDrawFrame() override {}
24 void SetAnimationEvents(scoped_ptr<AnimationEvents> queue) override; 24 void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) override;
25 void DidLoseOutputSurface() override {} 25 void DidLoseOutputSurface() override {}
26 void RequestNewOutputSurface() override {} 26 void RequestNewOutputSurface() override {}
27 void DidInitializeOutputSurface( 27 void DidInitializeOutputSurface(
28 bool success, 28 bool success,
29 const RendererCapabilities& capabilities) override {} 29 const RendererCapabilities& capabilities) override {}
30 void DidCompletePageScaleAnimation() override {} 30 void DidCompletePageScaleAnimation() override {}
31 void PostFrameTimingEventsOnMain( 31 void PostFrameTimingEventsOnMain(
32 scoped_ptr<FrameTimingTracker::CompositeTimingSet> composite_events, 32 std::unique_ptr<FrameTimingTracker::CompositeTimingSet> composite_events,
33 scoped_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events) 33 std::unique_ptr<FrameTimingTracker::MainFrameTimingSet> main_frame_events)
34 override {} 34 override {}
35 void BeginMainFrame(scoped_ptr<BeginMainFrameAndCommitState> 35 void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState>
36 begin_main_frame_state) override {} 36 begin_main_frame_state) override {}
37 }; 37 };
38 38
39 } // namespace cc 39 } // namespace cc
40 40
41 #endif // CC_TEST_FAKE_CHANNEL_IMPL_H_ 41 #endif // CC_TEST_FAKE_CHANNEL_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/cc_test_suite.h ('k') | cc/test/fake_channel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698