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_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ |
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ | 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ |
7 | 7 |
8 #include <unordered_set> | 8 #include <unordered_set> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 explicit CompositorExternalBeginFrameSource( | 37 explicit CompositorExternalBeginFrameSource( |
38 CompositorForwardingMessageFilter* filter, | 38 CompositorForwardingMessageFilter* filter, |
39 IPC::SyncMessageFilter* sync_message_filter, | 39 IPC::SyncMessageFilter* sync_message_filter, |
40 int routing_id); | 40 int routing_id); |
41 ~CompositorExternalBeginFrameSource() override; | 41 ~CompositorExternalBeginFrameSource() override; |
42 | 42 |
43 // cc::BeginFrameSource implementation. | 43 // cc::BeginFrameSource implementation. |
44 void AddObserver(cc::BeginFrameObserver* obs) override; | 44 void AddObserver(cc::BeginFrameObserver* obs) override; |
45 void RemoveObserver(cc::BeginFrameObserver* obs) override; | 45 void RemoveObserver(cc::BeginFrameObserver* obs) override; |
46 void DidFinishFrame(cc::BeginFrameObserver* obs, | 46 void DidFinishFrame(cc::BeginFrameObserver* obs) override; |
47 const cc::BeginFrameAck& ack) override; | |
48 bool IsThrottled() const override; | 47 bool IsThrottled() const override; |
49 | 48 |
50 // cc::ExternalBeginFrameSourceClient implementation. | 49 // cc::ExternalBeginFrameSourceClient implementation. |
51 void OnNeedsBeginFrames(bool need_begin_frames) override; | 50 void OnNeedsBeginFrames(bool need_begin_frames) override; |
52 | 51 |
53 private: | 52 private: |
54 class CompositorExternalBeginFrameSourceProxy | 53 class CompositorExternalBeginFrameSourceProxy |
55 : public base::RefCountedThreadSafe< | 54 : public base::RefCountedThreadSafe< |
56 CompositorExternalBeginFrameSourceProxy> { | 55 CompositorExternalBeginFrameSourceProxy> { |
57 public: | 56 public: |
(...skipping 30 matching lines...) Expand all Loading... |
88 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 87 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
89 int routing_id_; | 88 int routing_id_; |
90 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_; | 89 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_; |
91 | 90 |
92 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource); | 91 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource); |
93 }; | 92 }; |
94 | 93 |
95 } // namespace content | 94 } // namespace content |
96 | 95 |
97 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ | 96 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ |
OLD | NEW |