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

Side by Side Diff: webkit/common/gpu/webgraphicscontext3d_impl.h

Issue 617693003: gpu: Add CHROMIUM_gpu_memory_buffer_image extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@map-image-rename
Patch Set: include WebGraphicsContext3DImpl changes Created 6 years, 2 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
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | webkit/common/gpu/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ 5 #ifndef WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_
6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 WGC3Dsizei n, 532 WGC3Dsizei n,
533 const WGC3Denum* bufs); 533 const WGC3Denum* bufs);
534 534
535 // GL_ANGLE_instanced_arrays 535 // GL_ANGLE_instanced_arrays
536 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first, 536 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first,
537 WGC3Dsizei count, WGC3Dsizei primcount); 537 WGC3Dsizei count, WGC3Dsizei primcount);
538 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count, 538 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count,
539 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount); 539 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount);
540 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor); 540 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor);
541 541
542 // GL_CHROMIUM_map_image 542 // GL_CHROMIUM_image
543 virtual WGC3Duint createImageCHROMIUM(WGC3Dsizei width, 543 virtual WGC3Duint createImageCHROMIUM(WGC3Dsizei width,
544 WGC3Dsizei height, 544 WGC3Dsizei height,
545 WGC3Denum internalformat, 545 WGC3Denum internalformat,
546 WGC3Denum usage); 546 WGC3Denum usage);
547 virtual void destroyImageCHROMIUM(WGC3Duint image_id); 547 virtual void destroyImageCHROMIUM(WGC3Duint image_id);
548 virtual void getImageParameterivCHROMIUM( 548 virtual void getImageParameterivCHROMIUM(
549 WGC3Duint image_id, WGC3Denum pname, WGC3Dint* params); 549 WGC3Duint image_id, WGC3Denum pname, WGC3Dint* params);
550 virtual void* mapImageCHROMIUM(WGC3Duint image_id); 550 virtual void* mapImageCHROMIUM(WGC3Duint image_id);
551 virtual void unmapImageCHROMIUM(WGC3Duint image_id); 551 virtual void unmapImageCHROMIUM(WGC3Duint image_id);
552 552
553 // GL_CHROMIUM_gpu_memory_buffer_image
554 virtual WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width,
555 WGC3Dsizei height,
556 WGC3Denum internalformat,
557 WGC3Denum usage);
558
553 // GL_EXT_multisampled_render_to_texture 559 // GL_EXT_multisampled_render_to_texture
554 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, 560 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target,
555 WGC3Denum attachment, 561 WGC3Denum attachment,
556 WGC3Denum textarget, 562 WGC3Denum textarget,
557 WebGLId texture, 563 WebGLId texture,
558 WGC3Dint level, 564 WGC3Dint level,
559 WGC3Dsizei samples); 565 WGC3Dsizei samples);
560 virtual void renderbufferStorageMultisampleEXT( 566 virtual void renderbufferStorageMultisampleEXT(
561 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, 567 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat,
562 WGC3Dsizei width, WGC3Dsizei height); 568 WGC3Dsizei width, WGC3Dsizei height);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 608
603 ::gpu::gles2::GLES2Interface* gl_; 609 ::gpu::gles2::GLES2Interface* gl_;
604 bool lose_context_when_out_of_memory_; 610 bool lose_context_when_out_of_memory_;
605 uint32_t flush_id_; 611 uint32_t flush_id_;
606 }; 612 };
607 613
608 } // namespace gpu 614 } // namespace gpu
609 } // namespace webkit 615 } // namespace webkit
610 616
611 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ 617 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | webkit/common/gpu/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698