| OLD | NEW |
| 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/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 4525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4536 if (params) { | 4536 if (params) { |
| 4537 params[0] = unpack_premultiply_alpha_; | 4537 params[0] = unpack_premultiply_alpha_; |
| 4538 } | 4538 } |
| 4539 return true; | 4539 return true; |
| 4540 case GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM: | 4540 case GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM: |
| 4541 *num_written = 1; | 4541 *num_written = 1; |
| 4542 if (params) { | 4542 if (params) { |
| 4543 params[0] = unpack_unpremultiply_alpha_; | 4543 params[0] = unpack_unpremultiply_alpha_; |
| 4544 } | 4544 } |
| 4545 return true; | 4545 return true; |
| 4546 case GL_BIND_GENERATES_RESOURCE_CHROMIUM: |
| 4547 *num_written = 1; |
| 4548 if (params) { |
| 4549 params[0] = group_->bind_generates_resource() ? 1 : 0; |
| 4550 } |
| 4551 return true; |
| 4546 default: | 4552 default: |
| 4547 if (pname >= GL_DRAW_BUFFER0_ARB && | 4553 if (pname >= GL_DRAW_BUFFER0_ARB && |
| 4548 pname < GL_DRAW_BUFFER0_ARB + group_->max_draw_buffers()) { | 4554 pname < GL_DRAW_BUFFER0_ARB + group_->max_draw_buffers()) { |
| 4549 *num_written = 1; | 4555 *num_written = 1; |
| 4550 if (params) { | 4556 if (params) { |
| 4551 Framebuffer* framebuffer = | 4557 Framebuffer* framebuffer = |
| 4552 GetFramebufferInfoForTarget(GL_FRAMEBUFFER); | 4558 GetFramebufferInfoForTarget(GL_FRAMEBUFFER); |
| 4553 if (framebuffer) { | 4559 if (framebuffer) { |
| 4554 params[0] = framebuffer->GetDrawBuffer(pname); | 4560 params[0] = framebuffer->GetDrawBuffer(pname); |
| 4555 } else { // backbuffer | 4561 } else { // backbuffer |
| (...skipping 6122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10678 } | 10684 } |
| 10679 } | 10685 } |
| 10680 | 10686 |
| 10681 // Include the auto-generated part of this file. We split this because it means | 10687 // Include the auto-generated part of this file. We split this because it means |
| 10682 // we can easily edit the non-auto generated parts right here in this file | 10688 // we can easily edit the non-auto generated parts right here in this file |
| 10683 // instead of having to edit some template or the code generator. | 10689 // instead of having to edit some template or the code generator. |
| 10684 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10690 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 10685 | 10691 |
| 10686 } // namespace gles2 | 10692 } // namespace gles2 |
| 10687 } // namespace gpu | 10693 } // namespace gpu |
| OLD | NEW |