| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |