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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase 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_image_shared_memory.cc ('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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 WGC3Dsizei n, 527 WGC3Dsizei n,
528 const WGC3Denum* bufs); 528 const WGC3Denum* bufs);
529 529
530 // GL_ANGLE_instanced_arrays 530 // GL_ANGLE_instanced_arrays
531 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first, 531 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first,
532 WGC3Dsizei count, WGC3Dsizei primcount); 532 WGC3Dsizei count, WGC3Dsizei primcount);
533 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count, 533 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count,
534 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount); 534 WGC3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount);
535 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor); 535 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor);
536 536
537 // GL_CHROMIUM_image
538 virtual WGC3Duint createImageCHROMIUM(WGC3Dsizei width,
539 WGC3Dsizei height,
540 WGC3Denum internalformat,
541 WGC3Denum usage);
542 virtual void destroyImageCHROMIUM(WGC3Duint image_id);
543 virtual void getImageParameterivCHROMIUM(
544 WGC3Duint image_id, WGC3Denum pname, WGC3Dint* params);
545 virtual void* mapImageCHROMIUM(WGC3Duint image_id);
546 virtual void unmapImageCHROMIUM(WGC3Duint image_id);
547
548 // GL_CHROMIUM_gpu_memory_buffer_image 537 // GL_CHROMIUM_gpu_memory_buffer_image
549 virtual WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width, 538 virtual WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width,
550 WGC3Dsizei height, 539 WGC3Dsizei height,
551 WGC3Denum internalformat, 540 WGC3Denum internalformat,
552 WGC3Denum usage); 541 WGC3Denum usage);
542 virtual void destroyImageCHROMIUM(WGC3Duint image_id);
553 543
554 // GL_EXT_multisampled_render_to_texture 544 // GL_EXT_multisampled_render_to_texture
555 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, 545 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target,
556 WGC3Denum attachment, 546 WGC3Denum attachment,
557 WGC3Denum textarget, 547 WGC3Denum textarget,
558 WebGLId texture, 548 WebGLId texture,
559 WGC3Dint level, 549 WGC3Dint level,
560 WGC3Dsizei samples); 550 WGC3Dsizei samples);
561 virtual void renderbufferStorageMultisampleEXT( 551 virtual void renderbufferStorageMultisampleEXT(
562 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, 552 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 593
604 ::gpu::gles2::GLES2Interface* gl_; 594 ::gpu::gles2::GLES2Interface* gl_;
605 bool lose_context_when_out_of_memory_; 595 bool lose_context_when_out_of_memory_;
606 uint32_t flush_id_; 596 uint32_t flush_id_;
607 }; 597 };
608 598
609 } // namespace gpu 599 } // namespace gpu
610 } // namespace webkit 600 } // namespace webkit
611 601
612 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_ 602 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IMPL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_shared_memory.cc ('k') | webkit/common/gpu/webgraphicscontext3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698