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

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

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 11 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
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 <stddef.h>
9 #include <stdint.h>
10
11 #include "base/macros.h"
8 #include "gpu/command_buffer/service/memory_tracking.h" 12 #include "gpu/command_buffer/service/memory_tracking.h"
9 13
10 namespace mus { 14 namespace mus {
11 15
12 // TODO(fsamuel, rjkroege): This is a stub implementation that needs to be 16 // TODO(fsamuel, rjkroege): This is a stub implementation that needs to be
13 // completed for proper memory tracking. 17 // completed for proper memory tracking.
14 class GpuMemoryTracker : public gpu::gles2::MemoryTracker { 18 class GpuMemoryTracker : public gpu::gles2::MemoryTracker {
15 public: 19 public:
16 GpuMemoryTracker(); 20 GpuMemoryTracker();
17 21
18 // gpu::MemoryTracker implementation: 22 // gpu::MemoryTracker implementation:
19 void TrackMemoryAllocatedChange( 23 void TrackMemoryAllocatedChange(
20 size_t old_size, 24 size_t old_size,
21 size_t new_size) override; 25 size_t new_size) override;
22 bool EnsureGPUMemoryAvailable(size_t size_needed) override; 26 bool EnsureGPUMemoryAvailable(size_t size_needed) override;
23 uint64_t ClientTracingId() const override; 27 uint64_t ClientTracingId() const override;
24 int ClientId() const override; 28 int ClientId() const override;
25 uint64_t ShareGroupTracingGUID() const override; 29 uint64_t ShareGroupTracingGUID() const override;
26 30
27 private: 31 private:
28 ~GpuMemoryTracker() override; 32 ~GpuMemoryTracker() override;
29 33
30 DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker); 34 DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker);
31 }; 35 };
32 36
33 } // namespace mus 37 } // namespace mus
34 38
35 #endif // COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_ 39 #endif // COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_local_client.h ('k') | components/mus/gles2/mojo_buffer_backing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698