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

Side by Side Diff: gpu/blink/webgraphicscontext3d_impl.cc

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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 | « gpu/blink/webgraphicscontext3d_impl.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('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 #include "gpu/blink/webgraphicscontext3d_impl.h" 5 #include "gpu/blink/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 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 DELEGATE_TO_GL_2(bindTexImage2DCHROMIUM, BindTexImage2DCHROMIUM, 959 DELEGATE_TO_GL_2(bindTexImage2DCHROMIUM, BindTexImage2DCHROMIUM,
960 WGC3Denum, WGC3Dint) 960 WGC3Denum, WGC3Dint)
961 DELEGATE_TO_GL_2(releaseTexImage2DCHROMIUM, ReleaseTexImage2DCHROMIUM, 961 DELEGATE_TO_GL_2(releaseTexImage2DCHROMIUM, ReleaseTexImage2DCHROMIUM,
962 WGC3Denum, WGC3Dint) 962 WGC3Denum, WGC3Dint)
963 963
964 DELEGATE_TO_GL_2R(mapBufferCHROMIUM, MapBufferCHROMIUM, WGC3Denum, WGC3Denum, 964 DELEGATE_TO_GL_2R(mapBufferCHROMIUM, MapBufferCHROMIUM, WGC3Denum, WGC3Denum,
965 void*) 965 void*)
966 DELEGATE_TO_GL_1R(unmapBufferCHROMIUM, UnmapBufferCHROMIUM, WGC3Denum, 966 DELEGATE_TO_GL_1R(unmapBufferCHROMIUM, UnmapBufferCHROMIUM, WGC3Denum,
967 WGC3Dboolean) 967 WGC3Dboolean)
968 968
969 DELEGATE_TO_GL_9(asyncTexImage2DCHROMIUM, AsyncTexImage2DCHROMIUM, WGC3Denum,
970 WGC3Dint, WGC3Denum, WGC3Dsizei, WGC3Dsizei, WGC3Dint,
971 WGC3Denum, WGC3Denum, const void*)
972 DELEGATE_TO_GL_9(asyncTexSubImage2DCHROMIUM, AsyncTexSubImage2DCHROMIUM,
973 WGC3Denum, WGC3Dint, WGC3Dint, WGC3Dint, WGC3Dsizei,
974 WGC3Dsizei, WGC3Denum, WGC3Denum, const void*)
975
976 DELEGATE_TO_GL_1(waitAsyncTexImage2DCHROMIUM, WaitAsyncTexImage2DCHROMIUM,
977 WGC3Denum)
978
979 DELEGATE_TO_GL_2(drawBuffersEXT, DrawBuffersEXT, WGC3Dsizei, const WGC3Denum*) 969 DELEGATE_TO_GL_2(drawBuffersEXT, DrawBuffersEXT, WGC3Dsizei, const WGC3Denum*)
980 970
981 DELEGATE_TO_GL_4(drawArraysInstancedANGLE, DrawArraysInstancedANGLE, WGC3Denum, 971 DELEGATE_TO_GL_4(drawArraysInstancedANGLE, DrawArraysInstancedANGLE, WGC3Denum,
982 WGC3Dint, WGC3Dsizei, WGC3Dsizei) 972 WGC3Dint, WGC3Dsizei, WGC3Dsizei)
983 973
984 void WebGraphicsContext3DImpl::drawElementsInstancedANGLE( 974 void WebGraphicsContext3DImpl::drawElementsInstancedANGLE(
985 WGC3Denum mode, 975 WGC3Denum mode,
986 WGC3Dsizei count, 976 WGC3Dsizei count,
987 WGC3Denum type, 977 WGC3Denum type,
988 WGC3Dintptr offset, 978 WGC3Dintptr offset,
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 output_attribs->stencil_size = attributes.stencil ? 8 : 0; 1241 output_attribs->stencil_size = attributes.stencil ? 8 : 0;
1252 output_attribs->samples = attributes.antialias ? 4 : 0; 1242 output_attribs->samples = attributes.antialias ? 4 : 0;
1253 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; 1243 output_attribs->sample_buffers = attributes.antialias ? 1 : 0;
1254 output_attribs->fail_if_major_perf_caveat = 1244 output_attribs->fail_if_major_perf_caveat =
1255 attributes.failIfMajorPerformanceCaveat; 1245 attributes.failIfMajorPerformanceCaveat;
1256 output_attribs->bind_generates_resource = false; 1246 output_attribs->bind_generates_resource = false;
1257 output_attribs->webgl_version = attributes.webGLVersion; 1247 output_attribs->webgl_version = attributes.webGLVersion;
1258 } 1248 }
1259 1249
1260 } // namespace gpu_blink 1250 } // namespace gpu_blink
OLDNEW
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.h ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698