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

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

Issue 1887243002: cc: Remove retro frames from scheduler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 13 matching lines...) Expand all
24 : public cc::BeginFrameSourceBase, 24 : public cc::BeginFrameSourceBase,
25 public NON_EXPORTED_BASE(base::NonThreadSafe) { 25 public NON_EXPORTED_BASE(base::NonThreadSafe) {
26 public: 26 public:
27 explicit CompositorExternalBeginFrameSource( 27 explicit CompositorExternalBeginFrameSource(
28 CompositorForwardingMessageFilter* filter, 28 CompositorForwardingMessageFilter* filter,
29 IPC::SyncMessageFilter* sync_message_filter, 29 IPC::SyncMessageFilter* sync_message_filter,
30 int routing_id); 30 int routing_id);
31 ~CompositorExternalBeginFrameSource() override; 31 ~CompositorExternalBeginFrameSource() override;
32 32
33 // cc::BeginFrameSourceBase implementation. 33 // cc::BeginFrameSourceBase implementation.
34 void DidFinishFrame(cc::BeginFrameObserver* obs) override;
34 void AddObserver(cc::BeginFrameObserver* obs) override; 35 void AddObserver(cc::BeginFrameObserver* obs) override;
35 void OnNeedsBeginFramesChanged(bool needs_begin_frames) override; 36 void OnNeedsBeginFramesChanged(bool needs_begin_frames) override;
36 37
37 private: 38 private:
38 class CompositorExternalBeginFrameSourceProxy 39 class CompositorExternalBeginFrameSourceProxy
39 : public base::RefCountedThreadSafe< 40 : public base::RefCountedThreadSafe<
40 CompositorExternalBeginFrameSourceProxy> { 41 CompositorExternalBeginFrameSourceProxy> {
41 public: 42 public:
42 explicit CompositorExternalBeginFrameSourceProxy( 43 explicit CompositorExternalBeginFrameSourceProxy(
43 CompositorExternalBeginFrameSource* begin_frame_source) 44 CompositorExternalBeginFrameSource* begin_frame_source)
(...skipping 27 matching lines...) Expand all
71 int routing_id_; 72 int routing_id_;
72 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_; 73 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_;
73 cc::BeginFrameArgs missed_begin_frame_args_; 74 cc::BeginFrameArgs missed_begin_frame_args_;
74 75
75 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource); 76 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource);
76 }; 77 };
77 78
78 } // namespace content 79 } // namespace content
79 80
80 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ 81 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698