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

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

Issue 2452483002: Move GpuMemoryBufferManager and SharedBitmapManager to CompositorFrameSink (Closed)
Patch Set: rebase Created 4 years, 1 month 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void CreateCompositorFrameSink( 52 void CreateCompositorFrameSink(
53 base::WeakPtr<ui::Compositor> compositor) override; 53 base::WeakPtr<ui::Compositor> compositor) override;
54 std::unique_ptr<ui::Reflector> CreateReflector(ui::Compositor* source, 54 std::unique_ptr<ui::Reflector> CreateReflector(ui::Compositor* source,
55 ui::Layer* target) override; 55 ui::Layer* target) override;
56 void RemoveReflector(ui::Reflector* reflector) override; 56 void RemoveReflector(ui::Reflector* reflector) override;
57 void RemoveCompositor(ui::Compositor* compositor) override; 57 void RemoveCompositor(ui::Compositor* compositor) override;
58 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 58 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
59 bool DoesCreateTestContexts() override; 59 bool DoesCreateTestContexts() override;
60 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 60 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
61 gfx::BufferUsage usage) override; 61 gfx::BufferUsage usage) override;
62 cc::SharedBitmapManager* GetSharedBitmapManager() override;
63 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 62 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
64 cc::TaskGraphRunner* GetTaskGraphRunner() override; 63 cc::TaskGraphRunner* GetTaskGraphRunner() override;
65 cc::FrameSinkId AllocateFrameSinkId() override; 64 cc::FrameSinkId AllocateFrameSinkId() override;
66 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override; 65 void SetDisplayVisible(ui::Compositor* compositor, bool visible) override;
67 void ResizeDisplay(ui::Compositor* compositor, 66 void ResizeDisplay(ui::Compositor* compositor,
68 const gfx::Size& size) override; 67 const gfx::Size& size) override;
69 void SetDisplayColorSpace(ui::Compositor* compositor, 68 void SetDisplayColorSpace(ui::Compositor* compositor,
70 const gfx::ColorSpace& color_space) override; 69 const gfx::ColorSpace& color_space) override;
71 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 70 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
72 base::TimeDelta interval) override; 71 base::TimeDelta interval) override;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; 131 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr;
133 132
134 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 133 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
135 134
136 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 135 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
137 }; 136 };
138 137
139 } // namespace content 138 } // namespace content
140 139
141 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 140 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW
« no previous file with comments | « cc/trees/tree_synchronizer_unittest.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698