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

Unified Diff: services/ui/common/mus_gpu_memory_buffer_manager.h

Issue 2534663002: mus: Move MusGpuMemoryBufferManager into common. (Closed)
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/common/DEPS ('k') | services/ui/common/mus_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/common/mus_gpu_memory_buffer_manager.h
diff --git a/services/ui/surfaces/mus_gpu_memory_buffer_manager.h b/services/ui/common/mus_gpu_memory_buffer_manager.h
similarity index 84%
rename from services/ui/surfaces/mus_gpu_memory_buffer_manager.h
rename to services/ui/common/mus_gpu_memory_buffer_manager.h
index 12694ce84c017afe7d857a8408e5f04443b99bf4..cb1bd850c3b0a067f4de82047e138399fc5f0c0e 100644
--- a/services/ui/surfaces/mus_gpu_memory_buffer_manager.h
+++ b/services/ui/common/mus_gpu_memory_buffer_manager.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_UI_SURFACES_MUS_GPU_MEMORY_BUFFER_MANAGER_H_
-#define SERVICES_UI_SURFACES_MUS_GPU_MEMORY_BUFFER_MANAGER_H_
+#ifndef SERVICES_UI_COMMON_MUS_GPU_MEMORY_BUFFER_MANAGER_H_
+#define SERVICES_UI_COMMON_MUS_GPU_MEMORY_BUFFER_MANAGER_H_
#include <memory>
@@ -18,7 +18,7 @@ namespace ui {
// mus locally.
class MusGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
public:
- MusGpuMemoryBufferManager(mojom::GpuServiceInternalPtr gpu_service,
+ MusGpuMemoryBufferManager(mojom::GpuServiceInternal* gpu_service,
int client_id);
~MusGpuMemoryBufferManager() override;
@@ -36,18 +36,19 @@ class MusGpuMemoryBufferManager : public gpu::GpuMemoryBufferManager {
const gpu::SyncToken& sync_token) override;
private:
- DISALLOW_COPY_AND_ASSIGN(MusGpuMemoryBufferManager);
-
void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
int client_id,
bool is_native,
const gpu::SyncToken& sync_token);
- mojom::GpuServiceInternalPtr gpu_service_;
+ mojom::GpuServiceInternal* gpu_service_;
+
const int client_id_;
base::WeakPtrFactory<MusGpuMemoryBufferManager> weak_factory_;
+
+ DISALLOW_COPY_AND_ASSIGN(MusGpuMemoryBufferManager);
};
} // namespace ui
-#endif // SERVICES_UI_SURFACES_MUS_GPU_MEMORY_BUFFER_MANAGER_H_
+#endif // SERVICES_UI_COMMON_MUS_GPU_MEMORY_BUFFER_MANAGER_H_
« no previous file with comments | « services/ui/common/DEPS ('k') | services/ui/common/mus_gpu_memory_buffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698