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

Side by Side Diff: content/browser/compositor/browser_compositor_output_surface.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "ui/compositor/compositor_vsync_manager.h" 12 #include "ui/compositor/compositor_vsync_manager.h"
13 13
14 namespace cc { 14 namespace cc {
15 class SoftwareOutputDevice; 15 class SoftwareOutputDevice;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 class ContextProviderCommandBuffer; 19 class ContextProviderCommandBuffer;
20 class ReflectorImpl; 20 class ReflectorImpl;
21 class WebGraphicsContext3DCommandBufferImpl; 21 class WebGraphicsContext3DCommandBufferImpl;
22 22
23 class CONTENT_EXPORT BrowserCompositorOutputSurface 23 class CONTENT_EXPORT BrowserCompositorOutputSurface
24 : public cc::OutputSurface, 24 : public cc::OutputSurface,
25 public ui::CompositorVSyncManager::Observer, 25 public ui::CompositorVSyncManager::Observer,
26 public base::NonThreadSafe { 26 public base::NonThreadSafe {
27 public: 27 public:
28 virtual ~BrowserCompositorOutputSurface(); 28 ~BrowserCompositorOutputSurface() override;
29 29
30 // cc::OutputSurface implementation. 30 // cc::OutputSurface implementation.
31 virtual bool BindToClient(cc::OutputSurfaceClient* client) override; 31 bool BindToClient(cc::OutputSurfaceClient* client) override;
32 32
33 // ui::CompositorOutputSurface::Observer implementation. 33 // ui::CompositorOutputSurface::Observer implementation.
34 virtual void OnUpdateVSyncParameters(base::TimeTicks timebase, 34 void OnUpdateVSyncParameters(base::TimeTicks timebase,
35 base::TimeDelta interval) override; 35 base::TimeDelta interval) override;
36 36
37 void OnUpdateVSyncParametersFromGpu(base::TimeTicks tiembase, 37 void OnUpdateVSyncParametersFromGpu(base::TimeTicks tiembase,
38 base::TimeDelta interval); 38 base::TimeDelta interval);
39 39
40 void SetReflector(ReflectorImpl* reflector); 40 void SetReflector(ReflectorImpl* reflector);
41 41
42 #if defined(OS_MACOSX) 42 #if defined(OS_MACOSX)
43 virtual void OnSurfaceDisplayed() = 0; 43 virtual void OnSurfaceDisplayed() = 0;
44 #endif 44 #endif
45 45
(...skipping 20 matching lines...) Expand all
66 66
67 private: 67 private:
68 void Initialize(); 68 void Initialize();
69 69
70 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 70 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
71 }; 71 };
72 72
73 } // namespace content 73 } // namespace content
74 74
75 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 75 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/browser_compositor_ca_layer_tree_mac.h ('k') | content/browser/compositor/delegated_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698