| OLD | NEW |
| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 return context_.get(); | 94 return context_.get(); |
| 95 } | 95 } |
| 96 | 96 |
| 97 const gpu::gles2::FeatureInfo::Workarounds& workarounds() const; | 97 const gpu::gles2::FeatureInfo::Workarounds& workarounds() const; |
| 98 | 98 |
| 99 // GpuControl implementation. | 99 // GpuControl implementation. |
| 100 virtual Capabilities GetCapabilities() OVERRIDE; | 100 virtual Capabilities GetCapabilities() OVERRIDE; |
| 101 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, | 101 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, |
| 102 size_t height, | 102 size_t height, |
| 103 unsigned internalformat, | 103 unsigned internalformat, |
| 104 unsigned usage, |
| 104 int32* id) OVERRIDE; | 105 int32* id) OVERRIDE; |
| 105 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; | 106 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; |
| 106 virtual uint32 InsertSyncPoint() OVERRIDE; | 107 virtual uint32 InsertSyncPoint() OVERRIDE; |
| 107 virtual void SignalSyncPoint(uint32 sync_point, | 108 virtual void SignalSyncPoint(uint32 sync_point, |
| 108 const base::Closure& callback) OVERRIDE; | 109 const base::Closure& callback) OVERRIDE; |
| 109 virtual void SignalQuery(uint32 query, | 110 virtual void SignalQuery(uint32 query, |
| 110 const base::Closure& callback) OVERRIDE; | 111 const base::Closure& callback) OVERRIDE; |
| 111 virtual void SetSurfaceVisible(bool visible) OVERRIDE; | 112 virtual void SetSurfaceVisible(bool visible) OVERRIDE; |
| 112 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) OVERRIDE; | 113 virtual void SendManagedMemoryStats(const ManagedMemoryStats& stats) OVERRIDE; |
| 113 virtual void Echo(const base::Closure& callback) OVERRIDE; | 114 virtual void Echo(const base::Closure& callback) OVERRIDE; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 138 // Used on Android to virtualize GL for all contexts. | 139 // Used on Android to virtualize GL for all contexts. |
| 139 static int use_count_; | 140 static int use_count_; |
| 140 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 141 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
| 141 static scoped_refptr<gfx::GLSurface>* base_surface_; | 142 static scoped_refptr<gfx::GLSurface>* base_surface_; |
| 142 static scoped_refptr<gfx::GLContext>* base_context_; | 143 static scoped_refptr<gfx::GLContext>* base_context_; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace gpu | 146 } // namespace gpu |
| 146 | 147 |
| 147 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 148 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |