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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.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_GPU_PROCESS_TRANSPORT_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 19 matching lines...) Expand all
30 class ContextProviderCommandBuffer; 30 class ContextProviderCommandBuffer;
31 class ReflectorImpl; 31 class ReflectorImpl;
32 class WebGraphicsContext3DCommandBufferImpl; 32 class WebGraphicsContext3DCommandBufferImpl;
33 33
34 class GpuProcessTransportFactory 34 class GpuProcessTransportFactory
35 : public ui::ContextFactory, 35 : public ui::ContextFactory,
36 public ImageTransportFactory { 36 public ImageTransportFactory {
37 public: 37 public:
38 GpuProcessTransportFactory(); 38 GpuProcessTransportFactory();
39 39
40 virtual ~GpuProcessTransportFactory(); 40 ~GpuProcessTransportFactory() override;
41 41
42 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> 42 scoped_ptr<WebGraphicsContext3DCommandBufferImpl>
43 CreateOffscreenCommandBufferContext(); 43 CreateOffscreenCommandBufferContext();
44 44
45 // ui::ContextFactory implementation. 45 // ui::ContextFactory implementation.
46 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 46 scoped_ptr<cc::OutputSurface> CreateOutputSurface(
47 ui::Compositor* compositor, bool software_fallback) override; 47 ui::Compositor* compositor,
48 virtual scoped_refptr<ui::Reflector> CreateReflector( 48 bool software_fallback) override;
49 ui::Compositor* source, 49 scoped_refptr<ui::Reflector> CreateReflector(ui::Compositor* source,
50 ui::Layer* target) override; 50 ui::Layer* target) override;
51 virtual void RemoveReflector( 51 void RemoveReflector(scoped_refptr<ui::Reflector> reflector) override;
52 scoped_refptr<ui::Reflector> reflector) override; 52 void RemoveCompositor(ui::Compositor* compositor) override;
53 virtual void RemoveCompositor(ui::Compositor* compositor) override; 53 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
54 virtual scoped_refptr<cc::ContextProvider> 54 bool DoesCreateTestContexts() override;
55 SharedMainThreadContextProvider() override; 55 cc::SharedBitmapManager* GetSharedBitmapManager() override;
56 virtual bool DoesCreateTestContexts() override; 56 cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
57 virtual cc::SharedBitmapManager* GetSharedBitmapManager() override; 57 base::MessageLoopProxy* GetCompositorMessageLoop() override;
58 virtual cc::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 58 scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override;
59 virtual base::MessageLoopProxy* GetCompositorMessageLoop() override;
60 virtual scoped_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator()
61 override;
62 59
63 // ImageTransportFactory implementation. 60 // ImageTransportFactory implementation.
64 virtual ui::ContextFactory* GetContextFactory() override; 61 ui::ContextFactory* GetContextFactory() override;
65 virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() override; 62 gfx::GLSurfaceHandle GetSharedSurfaceHandle() override;
66 virtual cc::SurfaceManager* GetSurfaceManager() override; 63 cc::SurfaceManager* GetSurfaceManager() override;
67 virtual GLHelper* GetGLHelper() override; 64 GLHelper* GetGLHelper() override;
68 virtual void AddObserver(ImageTransportFactoryObserver* observer) override; 65 void AddObserver(ImageTransportFactoryObserver* observer) override;
69 virtual void RemoveObserver( 66 void RemoveObserver(ImageTransportFactoryObserver* observer) override;
70 ImageTransportFactoryObserver* observer) override;
71 #if defined(OS_MACOSX) 67 #if defined(OS_MACOSX)
72 virtual void OnSurfaceDisplayed(int surface_id) override; 68 void OnSurfaceDisplayed(int surface_id) override;
73 #endif 69 #endif
74 70
75 private: 71 private:
76 struct PerCompositorData; 72 struct PerCompositorData;
77 73
78 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor); 74 PerCompositorData* CreatePerCompositorData(ui::Compositor* compositor);
79 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> 75 scoped_ptr<WebGraphicsContext3DCommandBufferImpl>
80 CreateContextCommon(int surface_id); 76 CreateContextCommon(int surface_id);
81 77
82 void OnLostMainThreadSharedContextInsideCallback(); 78 void OnLostMainThreadSharedContextInsideCallback();
(...skipping 15 matching lines...) Expand all
98 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_; 94 scoped_refptr<BrowserCompositorOutputSurfaceProxy> output_surface_proxy_;
99 95
100 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 96 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
101 97
102 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 98 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
103 }; 99 };
104 100
105 } // namespace content 101 } // namespace content
106 102
107 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 103 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698