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

Side by Side Diff: content/common/gpu/gpu_channel_manager.h

Issue 1354363002: Cleanup: Pass std::string as const reference from content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « content/common/cc_messages_perftest.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('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 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool allow_real_time_streams); 138 bool allow_real_time_streams);
139 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); 139 void OnCloseChannel(const IPC::ChannelHandle& channel_handle);
140 void OnVisibilityChanged( 140 void OnVisibilityChanged(
141 int32 render_view_id, int32 client_id, bool visible); 141 int32 render_view_id, int32 client_id, bool visible);
142 void OnCreateViewCommandBuffer( 142 void OnCreateViewCommandBuffer(
143 const gfx::GLSurfaceHandle& window, 143 const gfx::GLSurfaceHandle& window,
144 int32 render_view_id, 144 int32 render_view_id,
145 int32 client_id, 145 int32 client_id,
146 const GPUCreateCommandBufferConfig& init_params, 146 const GPUCreateCommandBufferConfig& init_params,
147 int32 route_id); 147 int32 route_id);
148 void OnLoadedShader(std::string shader); 148 void OnLoadedShader(const std::string& shader);
149 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id); 149 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, int client_id);
150 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferId id, int client_id); 150 void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferId id, int client_id);
151 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 151 void OnDestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
152 int client_id, 152 int client_id,
153 int32 sync_point); 153 int32 sync_point);
154 154
155 void OnUpdateValueState(int client_id, 155 void OnUpdateValueState(int client_id,
156 unsigned int target, 156 unsigned int target,
157 const gpu::ValueState& state); 157 const gpu::ValueState& state);
158 void OnLoseAllContexts(); 158 void OnLoseAllContexts();
(...skipping 22 matching lines...) Expand all
181 // that any WeakPtrs to Controller are invalidated before its members 181 // that any WeakPtrs to Controller are invalidated before its members
182 // variable's destructors are executed, rendering them invalid. 182 // variable's destructors are executed, rendering them invalid.
183 base::WeakPtrFactory<GpuChannelManager> weak_factory_; 183 base::WeakPtrFactory<GpuChannelManager> weak_factory_;
184 184
185 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 185 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
186 }; 186 };
187 187
188 } // namespace content 188 } // namespace content
189 189
190 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 190 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/common/cc_messages_perftest.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698