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

Unified Diff: gpu/command_buffer/service/vertex_attrib_manager.h

Issue 16293004: Update gpu/ 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/vertex_attrib_manager.h
diff --git a/gpu/command_buffer/service/vertex_attrib_manager.h b/gpu/command_buffer/service/vertex_attrib_manager.h
index 665f9c8ae3daa1d488d2c834980234c6f9c9365e..2eff3ccfe30a7fb4e48803fede224718e2924978 100644
--- a/gpu/command_buffer/service/vertex_attrib_manager.h
+++ b/gpu/command_buffer/service/vertex_attrib_manager.h
@@ -35,9 +35,7 @@ class GPU_EXPORT VertexAttrib {
// Returns true if this VertexAttrib can access index.
bool CanAccess(GLuint index) const;
- Buffer* buffer() const {
- return buffer_;
- }
+ Buffer* buffer() const { return buffer_.get(); }
GLsizei offset() const {
return offset_;
@@ -223,9 +221,7 @@ class GPU_EXPORT VertexAttribManager :
void SetElementArrayBuffer(Buffer* buffer);
- Buffer* element_array_buffer() const {
- return element_array_buffer_;
- }
+ Buffer* element_array_buffer() const { return element_array_buffer_.get(); }
GLuint service_id() const {
return service_id_;
« no previous file with comments | « gpu/command_buffer/service/vertex_array_manager.cc ('k') | gpu/command_buffer/service/vertex_attrib_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698