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

Side by Side Diff: content/common/gpu/gpu_memory_manager.cc

Issue 11722024: Remove some usage of the ENABLE_GPU macro. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_memory_manager.h ('k') | content/common/gpu/gpu_memory_tracking.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_memory_manager.h ('k') | content/common/gpu/gpu_memory_tracking.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698