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

Side by Side Diff: content/browser/renderer_host/context_provider_factory_impl_android.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 scoped_refptr<cc::ContextProvider> CreateOffscreenContextProvider( 57 scoped_refptr<cc::ContextProvider> CreateOffscreenContextProvider(
58 ContextType context_type, 58 ContextType context_type,
59 gpu::SharedMemoryLimits shared_memory_limits, 59 gpu::SharedMemoryLimits shared_memory_limits,
60 gpu::gles2::ContextCreationAttribHelper attributes, 60 gpu::gles2::ContextCreationAttribHelper attributes,
61 bool support_locking, 61 bool support_locking,
62 bool automatic_flushes, 62 bool automatic_flushes,
63 cc::ContextProvider* shared_context_provider, 63 cc::ContextProvider* shared_context_provider,
64 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) override; 64 scoped_refptr<gpu::GpuChannelHost> gpu_channel_host) override;
65 cc::SurfaceManager* GetSurfaceManager() override; 65 cc::SurfaceManager* GetSurfaceManager() override;
66 cc::FrameSinkId AllocateFrameSinkId() override; 66 cc::FrameSinkId AllocateFrameSinkId() override;
67 cc::SharedBitmapManager* GetSharedBitmapManager() override;
68 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; 67 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
69 68
70 private: 69 private:
71 ContextProviderFactoryImpl( 70 ContextProviderFactoryImpl(
72 gpu::GpuChannelEstablishFactory* gpu_channel_factory); 71 gpu::GpuChannelEstablishFactory* gpu_channel_factory);
73 72
74 scoped_refptr<cc::ContextProvider> CreateContextProviderInternal( 73 scoped_refptr<cc::ContextProvider> CreateContextProviderInternal(
75 command_buffer_metrics::ContextType context_type, 74 command_buffer_metrics::ContextType context_type,
76 gpu::SurfaceHandle surface_handle, 75 gpu::SurfaceHandle surface_handle,
77 gpu::SharedMemoryLimits shared_memory_limits, 76 gpu::SharedMemoryLimits shared_memory_limits,
(...skipping 30 matching lines...) Expand all
108 uint32_t next_client_id_; 107 uint32_t next_client_id_;
109 108
110 base::WeakPtrFactory<ContextProviderFactoryImpl> weak_factory_; 109 base::WeakPtrFactory<ContextProviderFactoryImpl> weak_factory_;
111 110
112 DISALLOW_COPY_AND_ASSIGN(ContextProviderFactoryImpl); 111 DISALLOW_COPY_AND_ASSIGN(ContextProviderFactoryImpl);
113 }; 112 };
114 113
115 } // namespace content 114 } // namespace content
116 115
117 #endif // CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H _ 116 #endif // CONTENT_BROWSER_RENDERER_HOST_CONTEXT_PROVIDER_FACTORY_IMPL_ANDROID_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698