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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 2934733002: Workaround for Intel 6xxx clear to 0/1 bug (Closed)
Patch Set: fix try-bot error Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 GLclampf red = static_cast<GLclampf>(c.red); 473 GLclampf red = static_cast<GLclampf>(c.red);
474 GLclampf green = static_cast<GLclampf>(c.green); 474 GLclampf green = static_cast<GLclampf>(c.green);
475 GLclampf blue = static_cast<GLclampf>(c.blue); 475 GLclampf blue = static_cast<GLclampf>(c.blue);
476 GLclampf alpha = static_cast<GLclampf>(c.alpha); 476 GLclampf alpha = static_cast<GLclampf>(c.alpha);
477 if (state_.color_clear_red != red || state_.color_clear_green != green || 477 if (state_.color_clear_red != red || state_.color_clear_green != green ||
478 state_.color_clear_blue != blue || state_.color_clear_alpha != alpha) { 478 state_.color_clear_blue != blue || state_.color_clear_alpha != alpha) {
479 state_.color_clear_red = red; 479 state_.color_clear_red = red;
480 state_.color_clear_green = green; 480 state_.color_clear_green = green;
481 state_.color_clear_blue = blue; 481 state_.color_clear_blue = blue;
482 state_.color_clear_alpha = alpha; 482 state_.color_clear_alpha = alpha;
483 glClearColor(red, green, blue, alpha); 483 DoClearColor(red, green, blue, alpha);
484 } 484 }
485 return error::kNoError; 485 return error::kNoError;
486 } 486 }
487 487
488 error::Error GLES2DecoderImpl::HandleClearDepthf( 488 error::Error GLES2DecoderImpl::HandleClearDepthf(
489 uint32_t immediate_data_size, 489 uint32_t immediate_data_size,
490 const volatile void* cmd_data) { 490 const volatile void* cmd_data) {
491 const volatile gles2::cmds::ClearDepthf& c = 491 const volatile gles2::cmds::ClearDepthf& c =
492 *static_cast<const volatile gles2::cmds::ClearDepthf*>(cmd_data); 492 *static_cast<const volatile gles2::cmds::ClearDepthf*>(cmd_data);
493 GLclampf depth = static_cast<GLclampf>(c.depth); 493 GLclampf depth = static_cast<GLclampf>(c.depth);
(...skipping 4818 matching lines...) Expand 10 before | Expand all | Expand 10 after
5312 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5312 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5313 return true; 5313 return true;
5314 } 5314 }
5315 return false; 5315 return false;
5316 default: 5316 default:
5317 NOTREACHED(); 5317 NOTREACHED();
5318 return false; 5318 return false;
5319 } 5319 }
5320 } 5320 }
5321 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5321 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698