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

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

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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/gpu/gpu_channel.cc ('k') | content/common/np_channel_base.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_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 // Identifies the various GpuCommandBufferStubs in the GPU process belonging 164 // Identifies the various GpuCommandBufferStubs in the GPU process belonging
165 // to the same renderer process. 165 // to the same renderer process.
166 int32 route_id() const { return route_id_; } 166 int32 route_id() const { return route_id_; }
167 167
168 gfx::GpuPreference gpu_preference() { return gpu_preference_; } 168 gfx::GpuPreference gpu_preference() { return gpu_preference_; }
169 169
170 // Sends a message to the console. 170 // Sends a message to the console.
171 void SendConsoleMessage(int32 id, const std::string& message); 171 void SendConsoleMessage(int32 id, const std::string& message);
172 172
173 gfx::GLSurface* surface() const { return surface_; } 173 gfx::GLSurface* surface() const { return surface_.get(); }
174 174
175 void AddDestructionObserver(DestructionObserver* observer); 175 void AddDestructionObserver(DestructionObserver* observer);
176 void RemoveDestructionObserver(DestructionObserver* observer); 176 void RemoveDestructionObserver(DestructionObserver* observer);
177 177
178 // Associates a sync point to this stub. When the stub is destroyed, it will 178 // Associates a sync point to this stub. When the stub is destroyed, it will
179 // retire all sync points that haven't been previously retired. 179 // retire all sync points that haven't been previously retired.
180 void AddSyncPoint(uint32 sync_point); 180 void AddSyncPoint(uint32 sync_point);
181 181
182 void SetPreemptByCounter(scoped_refptr<gpu::RefCountedCounter> counter); 182 void SetPreemptByCounter(scoped_refptr<gpu::RefCountedCounter> counter);
183 183
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 GURL active_url_; 299 GURL active_url_;
300 size_t active_url_hash_; 300 size_t active_url_hash_;
301 301
302 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 302 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
303 }; 303 };
304 304
305 } // namespace content 305 } // namespace content
306 306
307 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 307 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/np_channel_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698