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

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

Issue 213743003: Pass GL context bind_generates_resources flag to GPU Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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 (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 4537 matching lines...) Expand 10 before | Expand all | Expand 10 after
4548 if (params) { 4548 if (params) {
4549 params[0] = unpack_premultiply_alpha_; 4549 params[0] = unpack_premultiply_alpha_;
4550 } 4550 }
4551 return true; 4551 return true;
4552 case GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM: 4552 case GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM:
4553 *num_written = 1; 4553 *num_written = 1;
4554 if (params) { 4554 if (params) {
4555 params[0] = unpack_unpremultiply_alpha_; 4555 params[0] = unpack_unpremultiply_alpha_;
4556 } 4556 }
4557 return true; 4557 return true;
4558 case GL_BIND_GENERATES_RESOURCE_CHROMIUM:
4559 *num_written = 1;
4560 if (params) {
4561 params[0] = group_->bind_generates_resource() ? 1 : 0;
4562 }
4563 return true;
4558 default: 4564 default:
4559 if (pname >= GL_DRAW_BUFFER0_ARB && 4565 if (pname >= GL_DRAW_BUFFER0_ARB &&
4560 pname < GL_DRAW_BUFFER0_ARB + group_->max_draw_buffers()) { 4566 pname < GL_DRAW_BUFFER0_ARB + group_->max_draw_buffers()) {
4561 *num_written = 1; 4567 *num_written = 1;
4562 if (params) { 4568 if (params) {
4563 Framebuffer* framebuffer = 4569 Framebuffer* framebuffer =
4564 GetFramebufferInfoForTarget(GL_FRAMEBUFFER); 4570 GetFramebufferInfoForTarget(GL_FRAMEBUFFER);
4565 if (framebuffer) { 4571 if (framebuffer) {
4566 params[0] = framebuffer->GetDrawBuffer(pname); 4572 params[0] = framebuffer->GetDrawBuffer(pname);
4567 } else { // backbuffer 4573 } else { // backbuffer
(...skipping 6122 matching lines...) Expand 10 before | Expand all | Expand 10 after
10690 } 10696 }
10691 } 10697 }
10692 10698
10693 // Include the auto-generated part of this file. We split this because it means 10699 // Include the auto-generated part of this file. We split this because it means
10694 // we can easily edit the non-auto generated parts right here in this file 10700 // we can easily edit the non-auto generated parts right here in this file
10695 // instead of having to edit some template or the code generator. 10701 // instead of having to edit some template or the code generator.
10696 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10702 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10697 10703
10698 } // namespace gles2 10704 } // namespace gles2
10699 } // namespace gpu 10705 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698