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

Side by Side Diff: content/renderer/android/synchronous_compositor_external_begin_frame_source.h

Issue 1778853003: Fold BeginFrameSource::SetClientReady into AddObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scheduler_always_external
Patch Set: Created 4 years, 9 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
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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOU RCE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOU RCE_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOU RCE_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOU RCE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 20 matching lines...) Expand all
31 int routing_id, 31 int routing_id,
32 SynchronousCompositorRegistry* registry); 32 SynchronousCompositorRegistry* registry);
33 ~SynchronousCompositorExternalBeginFrameSource() override; 33 ~SynchronousCompositorExternalBeginFrameSource() override;
34 34
35 void BeginFrame(const cc::BeginFrameArgs& args); 35 void BeginFrame(const cc::BeginFrameArgs& args);
36 void SetClient(SynchronousCompositorExternalBeginFrameSourceClient* client); 36 void SetClient(SynchronousCompositorExternalBeginFrameSourceClient* client);
37 using cc::BeginFrameSourceBase::SetBeginFrameSourcePaused; 37 using cc::BeginFrameSourceBase::SetBeginFrameSourcePaused;
38 38
39 // cc::BeginFrameSourceBase implementation. 39 // cc::BeginFrameSourceBase implementation.
40 void OnNeedsBeginFramesChanged(bool needs_begin_frames) override; 40 void OnNeedsBeginFramesChanged(bool needs_begin_frames) override;
41 void SetClientReady() override; 41 void AddObserver(cc::BeginFrameObserver* obs) override;
42 42
43 private: 43 private:
44 bool CalledOnValidThread() const; 44 bool CalledOnValidThread() const;
45 45
46 const int routing_id_; 46 const int routing_id_;
47 SynchronousCompositorRegistry* const registry_; 47 SynchronousCompositorRegistry* const registry_;
48 bool registered_; 48 bool registered_;
49 49
50 // Not owned. 50 // Not owned.
51 SynchronousCompositorExternalBeginFrameSourceClient* client_; 51 SynchronousCompositorExternalBeginFrameSourceClient* client_;
52 52
53 base::ThreadChecker thread_checker_; 53 base::ThreadChecker thread_checker_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorExternalBeginFrameSource); 55 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorExternalBeginFrameSource);
56 }; 56 };
57 57
58 } // namespace content 58 } // namespace content
59 59
60 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_ SOURCE_H_ 60 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_ SOURCE_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | content/renderer/android/synchronous_compositor_external_begin_frame_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698