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

Side by Side Diff: components/mus/gles2/gpu_memory_tracker.h

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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/mus/gles2/gpu_impl.cc ('k') | components/mus/gles2/gpu_memory_tracker.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_ 5 #ifndef COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_
6 #define COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_ 6 #define COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_
7 7
8 #include "gpu/command_buffer/service/memory_tracking.h" 8 #include "gpu/command_buffer/service/memory_tracking.h"
9 9
10 namespace gles2 { 10 namespace mus {
11 11
12 // TODO(fsamuel, rjkroege): This is a stub implementation that needs to be 12 // TODO(fsamuel, rjkroege): This is a stub implementation that needs to be
13 // completed for proper memory tracking. 13 // completed for proper memory tracking.
14 class GpuMemoryTracker : public gpu::gles2::MemoryTracker { 14 class GpuMemoryTracker : public gpu::gles2::MemoryTracker {
15 public: 15 public:
16 GpuMemoryTracker(); 16 GpuMemoryTracker();
17 17
18 // gpu::gles2::MemoryTracker implementation: 18 // gpu::MemoryTracker implementation:
19 void TrackMemoryAllocatedChange( 19 void TrackMemoryAllocatedChange(
20 size_t old_size, 20 size_t old_size,
21 size_t new_size, 21 size_t new_size,
22 gpu::gles2::MemoryTracker::Pool pool) override; 22 gpu::gles2::MemoryTracker::Pool pool) override;
23 bool EnsureGPUMemoryAvailable(size_t size_needed) override; 23 bool EnsureGPUMemoryAvailable(size_t size_needed) override;
24 uint64_t ClientTracingId() const override; 24 uint64_t ClientTracingId() const override;
25 int ClientId() const override; 25 int ClientId() const override;
26 26
27 private: 27 private:
28 ~GpuMemoryTracker() override; 28 ~GpuMemoryTracker() override;
29 29
30 DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker); 30 DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker);
31 }; 31 };
32 32
33 } // namespace gles2 33 } // namespace mus
34 34
35 #endif // COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_ 35 #endif // COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_
OLDNEW
« no previous file with comments | « components/mus/gles2/gpu_impl.cc ('k') | components/mus/gles2/gpu_memory_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698