OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/common/gpu/gpu_memory_manager.h" | 5 #include "content/common/gpu/gpu_memory_manager.h" |
6 | 6 |
7 #if defined(ENABLE_GPU) | |
8 | |
9 #include <algorithm> | 7 #include <algorithm> |
10 | 8 |
11 #include "base/bind.h" | 9 #include "base/bind.h" |
12 #include "base/command_line.h" | 10 #include "base/command_line.h" |
13 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
14 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
15 #include "base/process_util.h" | 13 #include "base/process_util.h" |
16 #include "base/string_number_conversions.h" | 14 #include "base/string_number_conversions.h" |
17 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
18 #include "content/common/gpu/gpu_channel_manager.h" | 16 #include "content/common/gpu/gpu_channel_manager.h" |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 | 693 |
696 void GpuMemoryManager::RemoveClientFromList( | 694 void GpuMemoryManager::RemoveClientFromList( |
697 GpuMemoryManagerClientState* client_state) { | 695 GpuMemoryManagerClientState* client_state) { |
698 DCHECK(client_state->list_iterator_valid_); | 696 DCHECK(client_state->list_iterator_valid_); |
699 ClientStateList* client_list = GetClientList(client_state); | 697 ClientStateList* client_list = GetClientList(client_state); |
700 client_list->erase(client_state->list_iterator_); | 698 client_list->erase(client_state->list_iterator_); |
701 client_state->list_iterator_valid_ = false; | 699 client_state->list_iterator_valid_ = false; |
702 } | 700 } |
703 | 701 |
704 } // namespace content | 702 } // namespace content |
705 | |
706 #endif | |
OLD | NEW |