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

Side by Side Diff: gpu/command_buffer/tests/gl_manager.h

Issue 342483007: Removed ManagedMemoryStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 unsigned internalformat, 103 unsigned internalformat,
104 unsigned usage, 104 unsigned usage,
105 int32* id) OVERRIDE; 105 int32* id) OVERRIDE;
106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
107 virtual uint32 InsertSyncPoint() OVERRIDE; 107 virtual uint32 InsertSyncPoint() OVERRIDE;
108 virtual void SignalSyncPoint(uint32 sync_point, 108 virtual void SignalSyncPoint(uint32 sync_point,
109 const base::Closure& callback) OVERRIDE; 109 const base::Closure& callback) OVERRIDE;
110 virtual void SignalQuery(uint32 query, 110 virtual void SignalQuery(uint32 query,
111 const base::Closure& callback) OVERRIDE; 111 const base::Closure& callback) OVERRIDE;
112 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 112 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
113 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) OVERRIDE;
114 virtual void Echo(const base::Closure& callback) OVERRIDE; 113 virtual void Echo(const base::Closure& callback) OVERRIDE;
115 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; 114 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE;
116 115
117 private: 116 private:
118 void PumpCommands(); 117 void PumpCommands();
119 bool GetBufferChanged(int32 transfer_buffer_id); 118 bool GetBufferChanged(int32 transfer_buffer_id);
120 void SetupBaseContext(); 119 void SetupBaseContext();
121 120
122 scoped_refptr<gles2::MailboxManager> mailbox_manager_; 121 scoped_refptr<gles2::MailboxManager> mailbox_manager_;
123 scoped_refptr<gfx::GLShareGroup> share_group_; 122 scoped_refptr<gfx::GLShareGroup> share_group_;
(...skipping 15 matching lines...) Expand all
139 // Used on Android to virtualize GL for all contexts. 138 // Used on Android to virtualize GL for all contexts.
140 static int use_count_; 139 static int use_count_;
141 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 140 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
142 static scoped_refptr<gfx::GLSurface>* base_surface_; 141 static scoped_refptr<gfx::GLSurface>* base_surface_;
143 static scoped_refptr<gfx::GLContext>* base_context_; 142 static scoped_refptr<gfx::GLContext>* base_context_;
144 }; 143 };
145 144
146 } // namespace gpu 145 } // namespace gpu
147 146
148 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 147 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698