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

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

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 | « webkit/common/gpu/webgraphicscontext3d_impl.h ('k') | no next file » | 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 #include "webkit/common/gpu/webgraphicscontext3d_impl.h" 5 #include "webkit/common/gpu/webgraphicscontext3d_impl.h"
6 6
7 #include "base/atomicops.h" 7 #include "base/atomicops.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "gpu/GLES2/gl2extchromium.h" 10 #include "gpu/GLES2/gl2extchromium.h"
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 921
922 DELEGATE_TO_GL_1(destroyImageCHROMIUM, DestroyImageCHROMIUM, WGC3Duint); 922 DELEGATE_TO_GL_1(destroyImageCHROMIUM, DestroyImageCHROMIUM, WGC3Duint);
923 923
924 DELEGATE_TO_GL_3(getImageParameterivCHROMIUM, GetImageParameterivCHROMIUM, 924 DELEGATE_TO_GL_3(getImageParameterivCHROMIUM, GetImageParameterivCHROMIUM,
925 WGC3Duint, WGC3Denum, GLint*); 925 WGC3Duint, WGC3Denum, GLint*);
926 926
927 DELEGATE_TO_GL_1R(mapImageCHROMIUM, MapImageCHROMIUM, WGC3Duint, void*); 927 DELEGATE_TO_GL_1R(mapImageCHROMIUM, MapImageCHROMIUM, WGC3Duint, void*);
928 928
929 DELEGATE_TO_GL_1(unmapImageCHROMIUM, UnmapImageCHROMIUM, WGC3Duint); 929 DELEGATE_TO_GL_1(unmapImageCHROMIUM, UnmapImageCHROMIUM, WGC3Duint);
930 930
931 DELEGATE_TO_GL_4R(createGpuMemoryBufferImageCHROMIUM,
932 CreateGpuMemoryBufferImageCHROMIUM,
933 WGC3Dsizei,
934 WGC3Dsizei,
935 WGC3Denum,
936 WGC3Denum,
937 WGC3Duint);
938
931 DELEGATE_TO_GL_6(framebufferTexture2DMultisampleEXT, 939 DELEGATE_TO_GL_6(framebufferTexture2DMultisampleEXT,
932 FramebufferTexture2DMultisampleEXT, 940 FramebufferTexture2DMultisampleEXT,
933 WGC3Denum, WGC3Denum, WGC3Denum, WebGLId, WGC3Dint, WGC3Dsizei) 941 WGC3Denum, WGC3Denum, WGC3Denum, WebGLId, WGC3Dint, WGC3Dsizei)
934 942
935 DELEGATE_TO_GL_5(renderbufferStorageMultisampleEXT, 943 DELEGATE_TO_GL_5(renderbufferStorageMultisampleEXT,
936 RenderbufferStorageMultisampleEXT, WGC3Denum, WGC3Dsizei, 944 RenderbufferStorageMultisampleEXT, WGC3Denum, WGC3Dsizei,
937 WGC3Denum, WGC3Dsizei, WGC3Dsizei) 945 WGC3Denum, WGC3Dsizei, WGC3Dsizei)
938 946
939 GrGLInterface* WebGraphicsContext3DImpl::createGrGLInterface() { 947 GrGLInterface* WebGraphicsContext3DImpl::createGrGLInterface() {
940 return skia_bindings::CreateCommandBufferSkiaGLBinding(); 948 return skia_bindings::CreateCommandBufferSkiaGLBinding();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 output_attribs->stencil_size = attributes.stencil ? 8 : 0; 997 output_attribs->stencil_size = attributes.stencil ? 8 : 0;
990 output_attribs->samples = attributes.antialias ? 4 : 0; 998 output_attribs->samples = attributes.antialias ? 4 : 0;
991 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; 999 output_attribs->sample_buffers = attributes.antialias ? 1 : 0;
992 output_attribs->fail_if_major_perf_caveat = 1000 output_attribs->fail_if_major_perf_caveat =
993 attributes.failIfMajorPerformanceCaveat; 1001 attributes.failIfMajorPerformanceCaveat;
994 output_attribs->bind_generates_resource = false; 1002 output_attribs->bind_generates_resource = false;
995 } 1003 }
996 1004
997 } // namespace gpu 1005 } // namespace gpu
998 } // namespace webkit 1006 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/common/gpu/webgraphicscontext3d_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698