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 CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 const WebGraphicsContext3D::Attributes& attributes, | 135 const WebGraphicsContext3D::Attributes& attributes, |
136 bool lose_context_when_out_of_memory, | 136 bool lose_context_when_out_of_memory, |
137 const GURL& active_url, | 137 const GURL& active_url, |
138 const SharedMemoryLimits& limits, | 138 const SharedMemoryLimits& limits, |
139 WebGraphicsContext3DCommandBufferImpl* share_context); | 139 WebGraphicsContext3DCommandBufferImpl* share_context); |
140 | 140 |
141 size_t GetMappedMemoryLimit() { | 141 size_t GetMappedMemoryLimit() { |
142 return mem_limits_.mapped_memory_reclaim_limit; | 142 return mem_limits_.mapped_memory_reclaim_limit; |
143 } | 143 } |
144 | 144 |
145 // WebGraphicsContext3DImpl methods | 145 // former WebGraphicsContext3DImpl methods |
jamesr
2014/09/26 20:05:40
comment's not useful. history lives in the revisio
| |
146 virtual bool InitializeOnCurrentThread() OVERRIDE; | 146 virtual bool InitializeOnCurrentThread(); |
jamesr
2014/09/26 20:05:40
why virtual?
| |
147 | 147 |
148 //---------------------------------------------------------------------- | 148 //---------------------------------------------------------------------- |
149 // WebGraphicsContext3D methods | 149 // WebGraphicsContext3D methods |
150 virtual bool isContextLost(); | 150 virtual bool isContextLost(); |
151 | 151 |
152 virtual WGC3Denum getGraphicsResetStatusARB(); | 152 virtual WGC3Denum getGraphicsResetStatusARB(); |
153 | 153 |
154 private: | 154 private: |
155 // These are the same error codes as used by EGL. | 155 // These are the same error codes as used by EGL. |
156 enum Error { | 156 enum Error { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 | 210 |
211 // Member variables should appear before the WeakPtrFactory, to ensure | 211 // Member variables should appear before the WeakPtrFactory, to ensure |
212 // that any WeakPtrs to Controller are invalidated before its members | 212 // that any WeakPtrs to Controller are invalidated before its members |
213 // variable's destructors are executed, rendering them invalid. | 213 // variable's destructors are executed, rendering them invalid. |
214 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; | 214 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; |
215 }; | 215 }; |
216 | 216 |
217 } // namespace content | 217 } // namespace content |
218 | 218 |
219 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 219 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |