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

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

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_tracking.h ('k') | content/common/gpu/gpu_watchdog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_memory_tracking.cc
diff --git a/content/common/gpu/gpu_memory_tracking.cc b/content/common/gpu/gpu_memory_tracking.cc
deleted file mode 100644
index 6fa447b5b878edf754b49569d5ba41073a7b46a6..0000000000000000000000000000000000000000
--- a/content/common/gpu/gpu_memory_tracking.cc
+++ /dev/null
@@ -1,37 +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.
-
-#include "content/common/gpu/gpu_memory_tracking.h"
-
-#include "content/common/gpu/gpu_memory_manager.h"
-
-namespace content {
-
-GpuMemoryTrackingGroup::GpuMemoryTrackingGroup(
- base::ProcessId pid,
- gpu::gles2::MemoryTracker* memory_tracker,
- GpuMemoryManager* memory_manager)
- : pid_(pid),
- size_(0),
- hibernated_(false),
- memory_tracker_(memory_tracker),
- memory_manager_(memory_manager) {
-}
-
-GpuMemoryTrackingGroup::~GpuMemoryTrackingGroup() {
- memory_manager_->OnDestroyTrackingGroup(this);
-}
-
-void GpuMemoryTrackingGroup::TrackMemoryAllocatedChange(uint64_t old_size,
- uint64_t new_size) {
- memory_manager_->TrackMemoryAllocatedChange(
- this, old_size, new_size);
-}
-
-bool GpuMemoryTrackingGroup::EnsureGPUMemoryAvailable(uint64_t size_needed) {
- return memory_manager_->EnsureGPUMemoryAvailable(size_needed);
-}
-
-
-} // namespace content
« no previous file with comments | « content/common/gpu/gpu_memory_tracking.h ('k') | content/common/gpu/gpu_watchdog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698