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

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

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // to the same renderer process. 117 // to the same renderer process.
118 int32 route_id() const { return route_id_; } 118 int32 route_id() const { return route_id_; }
119 119
120 gfx::GpuPreference gpu_preference() { return gpu_preference_; } 120 gfx::GpuPreference gpu_preference() { return gpu_preference_; }
121 121
122 // Sends a message to the console. 122 // Sends a message to the console.
123 void SendConsoleMessage(int32 id, const std::string& message); 123 void SendConsoleMessage(int32 id, const std::string& message);
124 124
125 void SendCachedShader(const std::string& key, const std::string& shader); 125 void SendCachedShader(const std::string& key, const std::string& shader);
126 126
127 gfx::GLSurface* surface() const { return surface_; } 127 gfx::GLSurface* surface() const { return surface_.get(); }
128 128
129 void AddDestructionObserver(DestructionObserver* observer); 129 void AddDestructionObserver(DestructionObserver* observer);
130 void RemoveDestructionObserver(DestructionObserver* observer); 130 void RemoveDestructionObserver(DestructionObserver* observer);
131 131
132 // Associates a sync point to this stub. When the stub is destroyed, it will 132 // Associates a sync point to this stub. When the stub is destroyed, it will
133 // retire all sync points that haven't been previously retired. 133 // retire all sync points that haven't been previously retired.
134 void AddSyncPoint(uint32 sync_point); 134 void AddSyncPoint(uint32 sync_point);
135 135
136 void SetPreemptByFlag(scoped_refptr<gpu::PreemptionFlag> flag); 136 void SetPreemptByFlag(scoped_refptr<gpu::PreemptionFlag> flag);
137 137
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 size_t active_url_hash_; 249 size_t active_url_hash_;
250 250
251 size_t total_gpu_memory_; 251 size_t total_gpu_memory_;
252 252
253 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 253 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
254 }; 254 };
255 255
256 } // namespace content 256 } // namespace content
257 257
258 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 258 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698