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

Side by Side Diff: content/renderer/gpu/compositor_external_begin_frame_source.h

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. Created 3 years, 7 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_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
47 const cc::BeginFrameAck& ack) override; 47 const cc::BeginFrameAck& ack) override;
48 bool IsThrottled() const override; 48 bool IsThrottled() const override;
49 49
50 // cc::ExternalBeginFrameSourceClient implementation. 50 // cc::ExternalBeginFrameSourceClient implementation.
51 void OnNeedsBeginFrames(bool need_begin_frames) override; 51 void OnNeedsBeginFrames(bool need_begin_frames) override;
52 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override;
53 52
54 private: 53 private:
55 class CompositorExternalBeginFrameSourceProxy 54 class CompositorExternalBeginFrameSourceProxy
56 : public base::RefCountedThreadSafe< 55 : public base::RefCountedThreadSafe<
57 CompositorExternalBeginFrameSourceProxy> { 56 CompositorExternalBeginFrameSourceProxy> {
58 public: 57 public:
59 explicit CompositorExternalBeginFrameSourceProxy( 58 explicit CompositorExternalBeginFrameSourceProxy(
60 CompositorExternalBeginFrameSource* begin_frame_source) 59 CompositorExternalBeginFrameSource* begin_frame_source)
61 : begin_frame_source_(begin_frame_source) {} 60 : begin_frame_source_(begin_frame_source) {}
62 void ClearBeginFrameSource() { begin_frame_source_ = NULL; } 61 void ClearBeginFrameSource() { begin_frame_source_ = NULL; }
(...skipping 26 matching lines...) Expand all
89 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 88 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
90 int routing_id_; 89 int routing_id_;
91 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_; 90 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_;
92 91
93 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource); 92 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource);
94 }; 93 };
95 94
96 } // namespace content 95 } // namespace content
97 96
98 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ 97 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698