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

Unified Diff: content/common/gpu/gpu_memory_tracking.h

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop ref to deleted content_tests_gypi_values.content_unittests_ozone_sources Created 4 years, 8 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 | « content/common/gpu/gpu_memory_manager.cc ('k') | content/common/gpu/gpu_memory_tracking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_tracking.h
diff --git a/content/common/gpu/gpu_memory_tracking.h b/content/common/gpu/gpu_memory_tracking.h
deleted file mode 100644
index 28892832f96732bd90eaf40f22361f205295a2db..0000000000000000000000000000000000000000
--- a/content/common/gpu/gpu_memory_tracking.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_
-#define CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_
-
-#include <stdint.h>
-
-#include "base/process/process.h"
-#include "content/common/content_export.h"
-#include "gpu/command_buffer/service/memory_tracking.h"
-
-namespace content {
-
-class GpuMemoryManager;
-
-// All decoders in a context group point to a single GpuMemoryTrackingGroup,
-// which tracks GPU resource consumption for the entire context group.
-class CONTENT_EXPORT GpuMemoryTrackingGroup {
- public:
- ~GpuMemoryTrackingGroup();
- void TrackMemoryAllocatedChange(uint64_t old_size, uint64_t new_size);
- bool EnsureGPUMemoryAvailable(uint64_t size_needed);
- base::ProcessId GetPid() const {
- return pid_;
- }
- uint64_t GetSize() const { return size_; }
- gpu::gles2::MemoryTracker* GetMemoryTracker() const {
- return memory_tracker_;
- }
-
- private:
- friend class GpuMemoryManager;
-
- GpuMemoryTrackingGroup(base::ProcessId pid,
- gpu::gles2::MemoryTracker* memory_tracker,
- GpuMemoryManager* memory_manager);
-
- base::ProcessId pid_;
- uint64_t size_;
-
- // Set and used only during the Manage function, to determine which
- // non-surface clients should be hibernated.
- bool hibernated_;
-
- gpu::gles2::MemoryTracker* memory_tracker_;
- GpuMemoryManager* memory_manager_;
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_GPU_GPU_MEMORY_TRACKING_H_
« no previous file with comments | « content/common/gpu/gpu_memory_manager.cc ('k') | content/common/gpu/gpu_memory_tracking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698