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

Unified Diff: services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.h

Issue 2559343003: mus: Rename GpuService to Gpu. (Closed)
Patch Set: . Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/public/cpp/gpu/BUILD.gn ('k') | services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.h
diff --git a/services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.h b/services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.h
index 1f7a8cd12aaa64c7a9d550193125367e80bd7116..88f4dcc77d65fe95fecdf92cc2dde7d0809c767a 100644
--- a/services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.h
+++ b/services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.h
@@ -13,7 +13,7 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/thread.h"
#include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
-#include "services/ui/public/interfaces/gpu_service.mojom.h"
+#include "services/ui/public/interfaces/gpu.mojom.h"
namespace base {
class WaitableEvent;
@@ -21,17 +21,13 @@ class WaitableEvent;
namespace ui {
-namespace mojom {
-class GpuService;
-}
-
class ClientGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
public:
- explicit ClientGpuMemoryBufferManager(mojom::GpuServicePtr gpu_service);
+ explicit ClientGpuMemoryBufferManager(mojom::GpuPtr gpu);
~ClientGpuMemoryBufferManager() override;
private:
- void InitThread(mojo::InterfacePtrInfo<mojom::GpuService> gpu_service_info);
+ void InitThread(mojom::GpuPtrInfo gpu_info);
void TearDownThread();
void AllocateGpuMemoryBufferOnThread(const gfx::Size& size,
gfx::BufferFormat format,
@@ -56,7 +52,7 @@ class ClientGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
int counter_ = 0;
// TODO(sad): Explore the option of doing this from an existing thread.
base::Thread thread_;
- mojom::GpuServicePtr gpu_service_;
+ mojom::GpuPtr gpu_;
base::WeakPtr<ClientGpuMemoryBufferManager> weak_ptr_;
base::WeakPtrFactory<ClientGpuMemoryBufferManager> weak_ptr_factory_;
« no previous file with comments | « services/ui/public/cpp/gpu/BUILD.gn ('k') | services/ui/public/cpp/gpu/client_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698