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

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

Issue 2365623003: Remove unused thread.h include in trace_event_impl.h and fix IWUU. (Closed)
Patch Set: Whitelist base DEPS for all web/tests Created 4 years, 2 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/raster/raster_buffer_provider_unittest.cc ('k') | cc/tiles/picture_layer_tiling_set.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 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 #ifndef CC_TEST_FAKE_EXTERNAL_BEGIN_FRAME_SOURCE_H_ 5 #ifndef CC_TEST_FAKE_EXTERNAL_BEGIN_FRAME_SOURCE_H_
6 #define CC_TEST_FAKE_EXTERNAL_BEGIN_FRAME_SOURCE_H_ 6 #define CC_TEST_FAKE_EXTERNAL_BEGIN_FRAME_SOURCE_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/threading/non_thread_safe.h"
12 #include "cc/scheduler/begin_frame_source.h" 13 #include "cc/scheduler/begin_frame_source.h"
13 14
14 namespace cc { 15 namespace cc {
15 16
16 class FakeExternalBeginFrameSource 17 class FakeExternalBeginFrameSource
17 : public BeginFrameSource, 18 : public BeginFrameSource,
18 public NON_EXPORTED_BASE(base::NonThreadSafe) { 19 public NON_EXPORTED_BASE(base::NonThreadSafe) {
19 public: 20 public:
20 class Client { 21 class Client {
21 public: 22 public:
(...skipping 27 matching lines...) Expand all
49 Client* client_ = nullptr; 50 Client* client_ = nullptr;
50 bool paused_ = false; 51 bool paused_ = false;
51 std::set<BeginFrameObserver*> observers_; 52 std::set<BeginFrameObserver*> observers_;
52 base::CancelableCallback<void(const BeginFrameArgs&)> begin_frame_task_; 53 base::CancelableCallback<void(const BeginFrameArgs&)> begin_frame_task_;
53 base::WeakPtrFactory<FakeExternalBeginFrameSource> weak_ptr_factory_; 54 base::WeakPtrFactory<FakeExternalBeginFrameSource> weak_ptr_factory_;
54 }; 55 };
55 56
56 } // namespace cc 57 } // namespace cc
57 58
58 #endif // CC_TEST_FAKE_EXTERNAL_BEGIN_FRAME_SOURCE_H_ 59 #endif // CC_TEST_FAKE_EXTERNAL_BEGIN_FRAME_SOURCE_H_
OLDNEW
« no previous file with comments | « cc/raster/raster_buffer_provider_unittest.cc ('k') | cc/tiles/picture_layer_tiling_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698