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

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

Issue 2743663006: Allow switching DirectCompositionSurfaceWin between drawing modes. (Closed)
Patch Set: fix release current in resize Created 3 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
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 5154 matching lines...) Expand 10 before | Expand all | Expand 10 after
5165 *static_cast<const volatile gles2::cmds::SetDrawRectangleCHROMIUM*>( 5165 *static_cast<const volatile gles2::cmds::SetDrawRectangleCHROMIUM*>(
5166 cmd_data); 5166 cmd_data);
5167 GLint x = static_cast<GLint>(c.x); 5167 GLint x = static_cast<GLint>(c.x);
5168 GLint y = static_cast<GLint>(c.y); 5168 GLint y = static_cast<GLint>(c.y);
5169 GLint width = static_cast<GLint>(c.width); 5169 GLint width = static_cast<GLint>(c.width);
5170 GLint height = static_cast<GLint>(c.height); 5170 GLint height = static_cast<GLint>(c.height);
5171 DoSetDrawRectangleCHROMIUM(x, y, width, height); 5171 DoSetDrawRectangleCHROMIUM(x, y, width, height);
5172 return error::kNoError; 5172 return error::kNoError;
5173 } 5173 }
5174 5174
5175 error::Error GLES2DecoderImpl::HandleSetEnableDCLayersCHROMIUM(
5176 uint32_t immediate_data_size,
5177 const volatile void* cmd_data) {
5178 const volatile gles2::cmds::SetEnableDCLayersCHROMIUM& c =
5179 *static_cast<const volatile gles2::cmds::SetEnableDCLayersCHROMIUM*>(
5180 cmd_data);
5181 GLboolean enabled = static_cast<GLboolean>(c.enabled);
5182 DoSetEnableDCLayersCHROMIUM(enabled);
5183 return error::kNoError;
5184 }
5185
5175 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) { 5186 bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
5176 switch (cap) { 5187 switch (cap) {
5177 case GL_BLEND: 5188 case GL_BLEND:
5178 state_.enable_flags.blend = enabled; 5189 state_.enable_flags.blend = enabled;
5179 if (state_.enable_flags.cached_blend != enabled || 5190 if (state_.enable_flags.cached_blend != enabled ||
5180 state_.ignore_cached_state) { 5191 state_.ignore_cached_state) {
5181 state_.enable_flags.cached_blend = enabled; 5192 state_.enable_flags.cached_blend = enabled;
5182 return true; 5193 return true;
5183 } 5194 }
5184 return false; 5195 return false;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
5283 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled; 5294 state_.enable_flags.cached_sample_alpha_to_one_ext = enabled;
5284 return true; 5295 return true;
5285 } 5296 }
5286 return false; 5297 return false;
5287 default: 5298 default:
5288 NOTREACHED(); 5299 NOTREACHED();
5289 return false; 5300 return false;
5290 } 5301 }
5291 } 5302 }
5292 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ 5303 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698