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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc

Issue 2879593003: super hacky opaque black clear bug workaround
Patch Set: Created 3 years, 7 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/command_buffer/service/gles2_cmd_decoder.cc ('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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/command_buffer/service/gles2_cmd_decoder_passthrough.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "ui/gl/gl_version_info.h" 8 #include "ui/gl/gl_version_info.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 GLint drawbuffers, 470 GLint drawbuffers,
471 const volatile GLuint* value) { 471 const volatile GLuint* value) {
472 glClearBufferuiv(buffer, drawbuffers, const_cast<const GLuint*>(value)); 472 glClearBufferuiv(buffer, drawbuffers, const_cast<const GLuint*>(value));
473 return error::kNoError; 473 return error::kNoError;
474 } 474 }
475 475
476 error::Error GLES2DecoderPassthroughImpl::DoClearColor(GLclampf red, 476 error::Error GLES2DecoderPassthroughImpl::DoClearColor(GLclampf red,
477 GLclampf green, 477 GLclampf green,
478 GLclampf blue, 478 GLclampf blue,
479 GLclampf alpha) { 479 GLclampf alpha) {
480 if (red == 0 && green == 0 && blue == 0 && alpha == 1) alpha = 1.001;
480 glClearColor(red, green, blue, alpha); 481 glClearColor(red, green, blue, alpha);
481 return error::kNoError; 482 return error::kNoError;
482 } 483 }
483 484
484 error::Error GLES2DecoderPassthroughImpl::DoClearDepthf(GLclampf depth) { 485 error::Error GLES2DecoderPassthroughImpl::DoClearDepthf(GLclampf depth) {
485 glClearDepthf(depth); 486 glClearDepthf(depth);
486 return error::kNoError; 487 return error::kNoError;
487 } 488 }
488 489
489 error::Error GLES2DecoderPassthroughImpl::DoClearStencil(GLint s) { 490 error::Error GLES2DecoderPassthroughImpl::DoClearStencil(GLint s) {
(...skipping 3548 matching lines...) Expand 10 before | Expand all | Expand 10 after
4038 } 4039 }
4039 4040
4040 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM( 4041 error::Error GLES2DecoderPassthroughImpl::DoSetEnableDCLayersCHROMIUM(
4041 GLboolean enable) { 4042 GLboolean enable) {
4042 NOTIMPLEMENTED(); 4043 NOTIMPLEMENTED();
4043 return error::kNoError; 4044 return error::kNoError;
4044 } 4045 }
4045 4046
4046 } // namespace gles2 4047 } // namespace gles2
4047 } // namespace gpu 4048 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698