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

Unified Diff: services/ui/gles2/gpu_memory_tracker.h

Issue 2194893002: services/ui: Revert CLs that broke Windows. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/gles2/gpu_impl.cc ('k') | services/ui/gles2/gpu_memory_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/gles2/gpu_memory_tracker.h
diff --git a/services/ui/gles2/gpu_memory_tracker.h b/services/ui/gles2/gpu_memory_tracker.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ff175c3a9212594669524b12be4db7eed76f63d
--- /dev/null
+++ b/services/ui/gles2/gpu_memory_tracker.h
@@ -0,0 +1,39 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_UI_GLES2_GPU_MEMORY_TRACKER_H_
+#define SERVICES_UI_GLES2_GPU_MEMORY_TRACKER_H_
+
+#include <stddef.h>
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "gpu/command_buffer/service/memory_tracking.h"
+
+namespace ui {
+
+// TODO(fsamuel, rjkroege): This is a stub implementation that needs to be
+// completed for proper memory tracking.
+class GpuMemoryTracker : public gpu::gles2::MemoryTracker {
+ public:
+ GpuMemoryTracker();
+
+ // gpu::MemoryTracker implementation:
+ void TrackMemoryAllocatedChange(
+ size_t old_size,
+ size_t new_size) override;
+ bool EnsureGPUMemoryAvailable(size_t size_needed) override;
+ uint64_t ClientTracingId() const override;
+ int ClientId() const override;
+ uint64_t ShareGroupTracingGUID() const override;
+
+ private:
+ ~GpuMemoryTracker() override;
+
+ DISALLOW_COPY_AND_ASSIGN(GpuMemoryTracker);
+};
+
+} // namespace ui
+
+#endif // SERVICES_UI_GLES2_GPU_MEMORY_TRACKER_H_
« no previous file with comments | « services/ui/gles2/gpu_impl.cc ('k') | services/ui/gles2/gpu_memory_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698