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

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

Issue 267683008: ChromeOS only version of r261563 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 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 | Annotate | Revision Log
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/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 4493 matching lines...) Expand 10 before | Expand all | Expand 10 after
4504 if (params) { 4504 if (params) {
4505 params[0] = unpack_premultiply_alpha_; 4505 params[0] = unpack_premultiply_alpha_;
4506 } 4506 }
4507 return true; 4507 return true;
4508 case GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM: 4508 case GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM:
4509 *num_written = 1; 4509 *num_written = 1;
4510 if (params) { 4510 if (params) {
4511 params[0] = unpack_unpremultiply_alpha_; 4511 params[0] = unpack_unpremultiply_alpha_;
4512 } 4512 }
4513 return true; 4513 return true;
4514 #if defined(OS_CHROMEOS)
4515 case GL_BIND_GENERATES_RESOURCE_CHROMIUM:
4516 *num_written = 1;
4517 if (params) {
4518 params[0] = group_->bind_generates_resource() ? 1 : 0;
4519 }
4520 return true;
4521 #endif
4514 default: 4522 default:
4515 if (pname >= GL_DRAW_BUFFER0_ARB && 4523 if (pname >= GL_DRAW_BUFFER0_ARB &&
4516 pname < GL_DRAW_BUFFER0_ARB + group_->max_draw_buffers()) { 4524 pname < GL_DRAW_BUFFER0_ARB + group_->max_draw_buffers()) {
4517 *num_written = 1; 4525 *num_written = 1;
4518 if (params) { 4526 if (params) {
4519 Framebuffer* framebuffer = 4527 Framebuffer* framebuffer =
4520 GetFramebufferInfoForTarget(GL_FRAMEBUFFER); 4528 GetFramebufferInfoForTarget(GL_FRAMEBUFFER);
4521 if (framebuffer) { 4529 if (framebuffer) {
4522 params[0] = framebuffer->GetDrawBuffer(pname); 4530 params[0] = framebuffer->GetDrawBuffer(pname);
4523 } else { // backbuffer 4531 } else { // backbuffer
(...skipping 6060 matching lines...) Expand 10 before | Expand all | Expand 10 after
10584 } 10592 }
10585 } 10593 }
10586 10594
10587 // Include the auto-generated part of this file. We split this because it means 10595 // Include the auto-generated part of this file. We split this because it means
10588 // we can easily edit the non-auto generated parts right here in this file 10596 // we can easily edit the non-auto generated parts right here in this file
10589 // instead of having to edit some template or the code generator. 10597 // instead of having to edit some template or the code generator.
10590 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10598 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10591 10599
10592 } // namespace gles2 10600 } // namespace gles2
10593 } // namespace gpu 10601 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698