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_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 5 #ifndef GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 6 #define GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 virtual void vertexAttribPointer(WGC3Duint index, | 364 virtual void vertexAttribPointer(WGC3Duint index, |
365 WGC3Dint size, | 365 WGC3Dint size, |
366 WGC3Denum type, | 366 WGC3Denum type, |
367 WGC3Dboolean normalized, | 367 WGC3Dboolean normalized, |
368 WGC3Dsizei stride, | 368 WGC3Dsizei stride, |
369 WGC3Dintptr offset); | 369 WGC3Dintptr offset); |
370 | 370 |
371 virtual void viewport(WGC3Dint x, WGC3Dint y, | 371 virtual void viewport(WGC3Dint x, WGC3Dint y, |
372 WGC3Dsizei width, WGC3Dsizei height); | 372 WGC3Dsizei width, WGC3Dsizei height); |
373 | 373 |
374 // Support for buffer creation and deletion | |
375 virtual void genBuffers(WGC3Dsizei count, WebGLId* ids); | |
376 virtual void genFramebuffers(WGC3Dsizei count, WebGLId* ids); | |
377 virtual void genRenderbuffers(WGC3Dsizei count, WebGLId* ids); | |
378 virtual void genTextures(WGC3Dsizei count, WebGLId* ids); | |
379 | |
380 virtual void deleteBuffers(WGC3Dsizei count, WebGLId* ids); | |
381 virtual void deleteFramebuffers(WGC3Dsizei count, WebGLId* ids); | |
382 virtual void deleteRenderbuffers(WGC3Dsizei count, WebGLId* ids); | |
383 virtual void deleteTextures(WGC3Dsizei count, WebGLId* ids); | |
384 | |
385 virtual WebGLId createBuffer(); | 374 virtual WebGLId createBuffer(); |
386 virtual WebGLId createFramebuffer(); | 375 virtual WebGLId createFramebuffer(); |
387 virtual WebGLId createRenderbuffer(); | 376 virtual WebGLId createRenderbuffer(); |
388 virtual WebGLId createTexture(); | 377 virtual WebGLId createTexture(); |
389 | 378 |
390 virtual void deleteBuffer(WebGLId); | 379 virtual void deleteBuffer(WebGLId); |
391 virtual void deleteFramebuffer(WebGLId); | 380 virtual void deleteFramebuffer(WebGLId); |
392 virtual void deleteRenderbuffer(WebGLId); | 381 virtual void deleteRenderbuffer(WebGLId); |
393 virtual void deleteTexture(WebGLId); | 382 virtual void deleteTexture(WebGLId); |
394 | 383 |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 std::vector<WGC3Denum> synthetic_errors_; | 595 std::vector<WGC3Denum> synthetic_errors_; |
607 | 596 |
608 ::gpu::gles2::GLES2Interface* gl_; | 597 ::gpu::gles2::GLES2Interface* gl_; |
609 bool lose_context_when_out_of_memory_; | 598 bool lose_context_when_out_of_memory_; |
610 uint32_t flush_id_; | 599 uint32_t flush_id_; |
611 }; | 600 }; |
612 | 601 |
613 } // namespace gpu_blink | 602 } // namespace gpu_blink |
614 | 603 |
615 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ | 604 #endif // GPU_BLINK_WEBGRAPHICSCONTEXT3D_IMPL_H_ |
OLD | NEW |