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

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

Issue 1203793003: Remove flip_y, premultiply_alpha, unmultiply_alpha support in command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 6 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 WebGraphicsContext3DImpl* graphics_context_; 64 WebGraphicsContext3DImpl* graphics_context_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(WebGraphicsContext3DErrorMessageCallback); 66 DISALLOW_COPY_AND_ASSIGN(WebGraphicsContext3DErrorMessageCallback);
67 }; 67 };
68 68
69 void WebGraphicsContext3DErrorMessageCallback::OnErrorMessage( 69 void WebGraphicsContext3DErrorMessageCallback::OnErrorMessage(
70 const char* msg, int id) { 70 const char* msg, int id) {
71 graphics_context_->OnErrorMessage(msg, id); 71 graphics_context_->OnErrorMessage(msg, id);
72 } 72 }
73 73
74 void WebGraphicsContext3DImpl::copyTextureCHROMIUM(
75 blink::WGC3Denum target,
76 blink::WebGLId source_id,
77 blink::WebGLId dest_id,
78 blink::WGC3Denum internal_format,
79 blink::WGC3Denum dest_type) {
80 copyTextureCHROMIUM(target, source_id, dest_id, internal_format, dest_type,
81 false, false, false);
82 }
83
84 void WebGraphicsContext3DImpl::copySubTextureCHROMIUM(
85 blink::WGC3Denum target,
86 blink::WebGLId source_id,
87 blink::WebGLId dest_id,
88 blink::WGC3Dint xoffset,
89 blink::WGC3Dint yoffset,
90 blink::WGC3Dint x,
91 blink::WGC3Dint y,
92 blink::WGC3Dsizei width,
93 blink::WGC3Dsizei height) {
94 copySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset,
95 x, y, width, height, false, false, false);
96 }
97
98 // Helper macros to reduce the amount of code. 74 // Helper macros to reduce the amount of code.
99 75
100 #define DELEGATE_TO_GL(name, glname) \ 76 #define DELEGATE_TO_GL(name, glname) \
101 void WebGraphicsContext3DImpl::name() { \ 77 void WebGraphicsContext3DImpl::name() { \
102 gl_->glname(); \ 78 gl_->glname(); \
103 } 79 }
104 80
105 #define DELEGATE_TO_GL_R(name, glname, rt) \ 81 #define DELEGATE_TO_GL_R(name, glname, rt) \
106 rt WebGraphicsContext3DImpl::name() { \ 82 rt WebGraphicsContext3DImpl::name() { \
107 return gl_->glname(); \ 83 return gl_->glname(); \
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 output_attribs->stencil_size = attributes.stencil ? 8 : 0; 1251 output_attribs->stencil_size = attributes.stencil ? 8 : 0;
1276 output_attribs->samples = attributes.antialias ? 4 : 0; 1252 output_attribs->samples = attributes.antialias ? 4 : 0;
1277 output_attribs->sample_buffers = attributes.antialias ? 1 : 0; 1253 output_attribs->sample_buffers = attributes.antialias ? 1 : 0;
1278 output_attribs->fail_if_major_perf_caveat = 1254 output_attribs->fail_if_major_perf_caveat =
1279 attributes.failIfMajorPerformanceCaveat; 1255 attributes.failIfMajorPerformanceCaveat;
1280 output_attribs->bind_generates_resource = false; 1256 output_attribs->bind_generates_resource = false;
1281 output_attribs->webgl_version = attributes.webGLVersion; 1257 output_attribs->webgl_version = attributes.webGLVersion;
1282 } 1258 }
1283 1259
1284 } // namespace gpu_blink 1260 } // 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