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

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

Issue 2748533002: Remove ui_compositor_image_transport, it has no effect. (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 5122 matching lines...) Expand 10 before | Expand all | Expand 10 after
5133 5133
5134 GLuint width = static_cast<GLuint>(c.width); 5134 GLuint width = static_cast<GLuint>(c.width);
5135 GLuint height = static_cast<GLuint>(c.height); 5135 GLuint height = static_cast<GLuint>(c.height);
5136 GLfloat scale_factor = c.scale_factor; 5136 GLfloat scale_factor = c.scale_factor;
5137 GLboolean has_alpha = c.alpha; 5137 GLboolean has_alpha = c.alpha;
5138 TRACE_EVENT2("gpu", "glResizeChromium", "width", width, "height", height); 5138 TRACE_EVENT2("gpu", "glResizeChromium", "width", width, "height", height);
5139 5139
5140 width = std::max(1U, width); 5140 width = std::max(1U, width);
5141 height = std::max(1U, height); 5141 height = std::max(1U, height);
5142 5142
5143 #if defined(OS_POSIX) && !defined(OS_MACOSX) && \
5144 !defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
5145 // Make sure that we are done drawing to the back buffer before resizing.
Nico 2017/03/11 18:30:01 I'm unsure about this bit; it might still be neede
5146 glFinish();
5147 #endif
5148 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); 5143 bool is_offscreen = !!offscreen_target_frame_buffer_.get();
5149 if (is_offscreen) { 5144 if (is_offscreen) {
5150 if (!ResizeOffscreenFramebuffer(gfx::Size(width, height))) { 5145 if (!ResizeOffscreenFramebuffer(gfx::Size(width, height))) {
5151 LOG(ERROR) << "GLES2DecoderImpl: Context lost because " 5146 LOG(ERROR) << "GLES2DecoderImpl: Context lost because "
5152 << "ResizeOffscreenFramebuffer failed."; 5147 << "ResizeOffscreenFramebuffer failed.";
5153 return error::kLostContext; 5148 return error::kLostContext;
5154 } 5149 }
5155 } else { 5150 } else {
5156 if (!surface_->Resize(gfx::Size(width, height), scale_factor, 5151 if (!surface_->Resize(gfx::Size(width, height), scale_factor,
5157 !!has_alpha)) { 5152 !!has_alpha)) {
(...skipping 14177 matching lines...) Expand 10 before | Expand all | Expand 10 after
19335 } 19330 }
19336 19331
19337 // Include the auto-generated part of this file. We split this because it means 19332 // Include the auto-generated part of this file. We split this because it means
19338 // we can easily edit the non-auto generated parts right here in this file 19333 // we can easily edit the non-auto generated parts right here in this file
19339 // instead of having to edit some template or the code generator. 19334 // instead of having to edit some template or the code generator.
19340 #include "base/macros.h" 19335 #include "base/macros.h"
19341 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19336 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19342 19337
19343 } // namespace gles2 19338 } // namespace gles2
19344 } // namespace gpu 19339 } // namespace gpu
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698