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

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

Issue 1027823003: Remove |level| in copy(Sub)TextureCHROMIUM(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep coding style Created 5 years, 9 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') | 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 "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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 gl_->DeleteQueriesEXT(1, &query); 819 gl_->DeleteQueriesEXT(1, &query);
820 } 820 }
821 821
822 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean) 822 DELEGATE_TO_GL_1R(isQueryEXT, IsQueryEXT, WebGLId, WGC3Dboolean)
823 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId) 823 DELEGATE_TO_GL_2(beginQueryEXT, BeginQueryEXT, WGC3Denum, WebGLId)
824 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum) 824 DELEGATE_TO_GL_1(endQueryEXT, EndQueryEXT, WGC3Denum)
825 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*) 825 DELEGATE_TO_GL_3(getQueryivEXT, GetQueryivEXT, WGC3Denum, WGC3Denum, WGC3Dint*)
826 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT, 826 DELEGATE_TO_GL_3(getQueryObjectuivEXT, GetQueryObjectuivEXT,
827 WebGLId, WGC3Denum, WGC3Duint*) 827 WebGLId, WGC3Denum, WGC3Duint*)
828 828
829 void WebGraphicsContext3DImpl::copyTextureCHROMIUM(WGC3Denum target,
830 WebGLId source_id,
831 WebGLId dest_id,
832 WGC3Dint level,
833 WGC3Denum internal_format,
834 WGC3Denum dest_type) {
835 copyTextureCHROMIUM(target, source_id, dest_id, internal_format, dest_type);
836 }
837
838 void WebGraphicsContext3DImpl::copySubTextureCHROMIUM(WGC3Denum target,
839 WebGLId source_id,
840 WebGLId dest_id,
841 WGC3Dint level,
842 WGC3Dint xoffset,
843 WGC3Dint yoffset) {
844 copySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset);
845 }
846
847 DELEGATE_TO_GL_5(copyTextureCHROMIUM, 829 DELEGATE_TO_GL_5(copyTextureCHROMIUM,
848 CopyTextureCHROMIUM, 830 CopyTextureCHROMIUM,
849 WGC3Denum, 831 WGC3Denum,
850 WebGLId, 832 WebGLId,
851 WebGLId, 833 WebGLId,
852 WGC3Denum, 834 WGC3Denum,
853 WGC3Denum); 835 WGC3Denum);
854 836
855 DELEGATE_TO_GL_5(copySubTextureCHROMIUM, 837 DELEGATE_TO_GL_5(copySubTextureCHROMIUM,
856 CopySubTextureCHROMIUM, 838 CopySubTextureCHROMIUM,
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 output_attribs->samples = attributes.antialias ? 4 : 0; 1211 output_attribs->samples = attributes.antialias ? 4 : 0;
1230 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; 1212 output_attribs->sample_buffers = attributes.antialias ? 1 : 0;
1231 output_attribs->fail_if_major_perf_caveat = 1213 output_attribs->fail_if_major_perf_caveat =
1232 attributes.failIfMajorPerformanceCaveat; 1214 attributes.failIfMajorPerformanceCaveat;
1233 output_attribs->bind_generates_resource = false; 1215 output_attribs->bind_generates_resource = false;
1234 output_attribs->es3_context_required = 1216 output_attribs->es3_context_required =
1235 (attributes.webGL && attributes.webGLVersion == 2); 1217 (attributes.webGL && attributes.webGLVersion == 2);
1236 } 1218 }
1237 1219
1238 } // namespace gpu_blink 1220 } // namespace gpu_blink
OLDNEW
« no previous file with comments | « gpu/blink/webgraphicscontext3d_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698