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

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

Issue 823713002: Standardize usage of virtual/override/final specifiers in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 // This class can be created only on the main thread, but then becomes pinned 21 // This class can be created only on the main thread, but then becomes pinned
22 // to a fixed thread where cc::Scheduler is running. 22 // to a fixed thread where cc::Scheduler is running.
23 class CompositorExternalBeginFrameSource 23 class CompositorExternalBeginFrameSource
24 : public cc::BeginFrameSourceMixIn, 24 : public cc::BeginFrameSourceMixIn,
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 virtual ~CompositorExternalBeginFrameSource(); 31 ~CompositorExternalBeginFrameSource() override;
32 32
33 // cc::BeginFrameSourceMixIn implementation. 33 // cc::BeginFrameSourceMixIn implementation.
34 virtual void OnNeedsBeginFramesChange(bool needs_begin_frames) override; 34 void OnNeedsBeginFramesChange(bool needs_begin_frames) override;
35 virtual void SetClientReady() override; 35 void SetClientReady() override;
36 36
37 private: 37 private:
38 class CompositorExternalBeginFrameSourceProxy 38 class CompositorExternalBeginFrameSourceProxy
39 : public base::RefCountedThreadSafe< 39 : public base::RefCountedThreadSafe<
40 CompositorExternalBeginFrameSourceProxy> { 40 CompositorExternalBeginFrameSourceProxy> {
41 public: 41 public:
42 explicit CompositorExternalBeginFrameSourceProxy( 42 explicit CompositorExternalBeginFrameSourceProxy(
43 CompositorExternalBeginFrameSource* begin_frame_source) 43 CompositorExternalBeginFrameSource* begin_frame_source)
44 : begin_frame_source_(begin_frame_source) {} 44 : begin_frame_source_(begin_frame_source) {}
45 void ClearBeginFrameSource() { begin_frame_source_ = NULL; } 45 void ClearBeginFrameSource() { begin_frame_source_ = NULL; }
(...skipping 23 matching lines...) Expand all
69 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 69 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
70 int routing_id_; 70 int routing_id_;
71 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_; 71 CompositorForwardingMessageFilter::Handler begin_frame_source_filter_handler_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource); 73 DISALLOW_COPY_AND_ASSIGN(CompositorExternalBeginFrameSource);
74 }; 74 };
75 75
76 } // namespace content 76 } // namespace content
77 77
78 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_ 78 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_
OLDNEW
« no previous file with comments | « content/child/resource_scheduling_filter.h ('k') | content/renderer/gpu/compositor_forwarding_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698