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

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

Issue 2166423002: ui::ContextFactory should not create SurfaceIdAllocators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nit Created 4 years, 5 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
« no previous file with comments | « components/exo/surface.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 ui::Layer* target) override; 54 ui::Layer* target) override;
55 void RemoveReflector(ui::Reflector* reflector) override; 55 void RemoveReflector(ui::Reflector* reflector) override;
56 void RemoveCompositor(ui::Compositor* compositor) override; 56 void RemoveCompositor(ui::Compositor* compositor) override;
57 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override; 57 scoped_refptr<cc::ContextProvider> SharedMainThreadContextProvider() override;
58 bool DoesCreateTestContexts() override; 58 bool DoesCreateTestContexts() override;
59 uint32_t GetImageTextureTarget(gfx::BufferFormat format, 59 uint32_t GetImageTextureTarget(gfx::BufferFormat format,
60 gfx::BufferUsage usage) override; 60 gfx::BufferUsage usage) override;
61 cc::SharedBitmapManager* GetSharedBitmapManager() override; 61 cc::SharedBitmapManager* GetSharedBitmapManager() override;
62 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 62 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
63 cc::TaskGraphRunner* GetTaskGraphRunner() override; 63 cc::TaskGraphRunner* GetTaskGraphRunner() override;
64 std::unique_ptr<cc::SurfaceIdAllocator> CreateSurfaceIdAllocator() override; 64 uint32_t AllocateSurfaceClientId() override;
65 void ResizeDisplay(ui::Compositor* compositor, 65 void ResizeDisplay(ui::Compositor* compositor,
66 const gfx::Size& size) override; 66 const gfx::Size& size) override;
67 void SetDisplayColorSpace(ui::Compositor* compositor, 67 void SetDisplayColorSpace(ui::Compositor* compositor,
68 const gfx::ColorSpace& color_space) override; 68 const gfx::ColorSpace& color_space) override;
69 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor, 69 void SetAuthoritativeVSyncInterval(ui::Compositor* compositor,
70 base::TimeDelta interval) override; 70 base::TimeDelta interval) override;
71 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override; 71 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override;
72 void AddObserver(ui::ContextFactoryObserver* observer) override; 72 void AddObserver(ui::ContextFactoryObserver* observer) override;
73 void RemoveObserver(ui::ContextFactoryObserver* observer) override; 73 void RemoveObserver(ui::ContextFactoryObserver* observer) override;
74 74
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 std::unique_ptr<OutputDeviceBacking> software_backing_; 115 std::unique_ptr<OutputDeviceBacking> software_backing_;
116 #endif 116 #endif
117 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 117 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 119 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
120 }; 120 };
121 121
122 } // namespace content 122 } // namespace content
123 123
124 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 124 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW
« no previous file with comments | « components/exo/surface.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