Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| 6 #define CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 198 | 198 |
| 199 void set_max_texture_size(int size) { max_texture_size_ = size; } | 199 void set_max_texture_size(int size) { max_texture_size_ = size; } |
| 200 | 200 |
| 201 static const WebKit::WebGLId kExternalTextureId; | 201 static const WebKit::WebGLId kExternalTextureId; |
| 202 virtual WebKit::WebGLId NextTextureId(); | 202 virtual WebKit::WebGLId NextTextureId(); |
| 203 | 203 |
| 204 virtual WebKit::WebGLId NextBufferId(); | 204 virtual WebKit::WebGLId NextBufferId(); |
| 205 | 205 |
| 206 virtual WebKit::WebGLId NextImageId(); | 206 virtual WebKit::WebGLId NextImageId(); |
| 207 | 207 |
| 208 size_t transfer_buffer_memory_used_bytes() const; | |
|
reveman
2013/09/09 16:40:47
nit: GetMaxTransferBufferUsageBytes as this is no
kaanb
2013/09/09 18:20:43
Done.
| |
| 209 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); | |
| 210 | |
| 208 protected: | 211 protected: |
| 209 struct Buffer { | 212 struct Buffer { |
| 210 Buffer(); | 213 Buffer(); |
| 211 ~Buffer(); | 214 ~Buffer(); |
| 212 | 215 |
| 213 WebKit::WGC3Denum target; | 216 WebKit::WGC3Denum target; |
| 214 scoped_ptr<uint8[]> pixels; | 217 scoped_ptr<uint8[]> pixels; |
| 218 size_t size; | |
| 215 | 219 |
| 216 private: | 220 private: |
| 217 DISALLOW_COPY_AND_ASSIGN(Buffer); | 221 DISALLOW_COPY_AND_ASSIGN(Buffer); |
| 218 }; | 222 }; |
| 219 | 223 |
| 220 struct Image { | 224 struct Image { |
| 221 Image(); | 225 Image(); |
| 222 ~Image(); | 226 ~Image(); |
| 223 | 227 |
| 224 scoped_ptr<uint8[]> pixels; | 228 scoped_ptr<uint8[]> pixels; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 276 | 280 |
| 277 scoped_refptr<Namespace> namespace_; | 281 scoped_refptr<Namespace> namespace_; |
| 278 static Namespace* shared_namespace_; | 282 static Namespace* shared_namespace_; |
| 279 | 283 |
| 280 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 284 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 281 }; | 285 }; |
| 282 | 286 |
| 283 } // namespace cc | 287 } // namespace cc |
| 284 | 288 |
| 285 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 289 #endif // CC_DEBUG_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |