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

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

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_
6 #define COMPONENTS_MUS_GLES2_GPU_MEMORY_TRACKER_H_
7
8 #include <stddef.h>
9 #include <stdint.h>
10
11 #include "base/macros.h"
12 #include "gpu/command_buffer/service/memory_tracking.h"
13
14 namespace mus {
15
16 // TODO(fsamuel, rjkroege): This is a stub implementation that needs to be
17 // completed for proper memory tracking.
18 class GpuMemoryTracker : public gpu::gles2::MemoryTracker {
19 public:
20 GpuMemoryTracker();
21
22 // gpu::MemoryTracker implementation:
23 void TrackMemoryAllocatedChange(
24 size_t old_size,
25 size_t new_size) override;
26 bool EnsureGPUMemoryAvailable(size_t size_needed) override;
27 uint64_t ClientTracingId() const override;
28 int ClientId() const override;
29 uint64_t ShareGroupTracingGUID() const override;
30
31 private:
32 ~GpuMemoryTracker() override;
33
34 DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker);
35 };
36
37 } // namespace mus
38
39 #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