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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.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/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_memory_manager.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 #if defined(ENABLE_GPU)
6
7 #include "base/bind.h" 5 #include "base/bind.h"
8 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 7 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
11 #include "base/hash.h" 9 #include "base/hash.h"
12 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
13 #include "base/time.h" 11 #include "base/time.h"
14 #include "build/build_config.h" 12 #include "build/build_config.h"
15 #include "content/common/gpu/gpu_channel.h" 13 #include "content/common/gpu/gpu_channel.h"
16 #include "content/common/gpu/gpu_channel_manager.h" 14 #include "content/common/gpu/gpu_channel_manager.h"
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 route_id_, allocation.renderer_allocation)); 865 route_id_, allocation.renderer_allocation));
868 // This can be called outside of OnMessageReceived, so the context needs to be 866 // This can be called outside of OnMessageReceived, so the context needs to be
869 // made current before calling methods on the surface. 867 // made current before calling methods on the surface.
870 if (!surface_ || !MakeCurrent()) 868 if (!surface_ || !MakeCurrent())
871 return; 869 return;
872 surface_->SetFrontbufferAllocation( 870 surface_->SetFrontbufferAllocation(
873 allocation.browser_allocation.suggest_have_frontbuffer); 871 allocation.browser_allocation.suggest_have_frontbuffer);
874 } 872 }
875 873
876 } // namespace content 874 } // namespace content
877
878 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/gpu_memory_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698