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

Side by Side Diff: content/common/gpu/texture_image_transport_surface.cc

Issue 207443007: Blacklist partial swaps on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 6 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 | 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 "content/common/gpu/texture_image_transport_surface.h" 5 #include "content/common/gpu/texture_image_transport_surface.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 glFlush(); 261 glFlush();
262 262
263 params.latency_info.swap(latency_info_); 263 params.latency_info.swap(latency_info_);
264 helper_->SendAcceleratedSurfacePostSubBuffer(params); 264 helper_->SendAcceleratedSurfacePostSubBuffer(params);
265 265
266 DCHECK(!is_swap_buffers_pending_); 266 DCHECK(!is_swap_buffers_pending_);
267 is_swap_buffers_pending_ = true; 267 is_swap_buffers_pending_ = true;
268 return true; 268 return true;
269 } 269 }
270 270
271 std::string TextureImageTransportSurface::GetExtensions() { 271 bool TextureImageTransportSurface::SupportsPostSubBuffer() {
272 std::string extensions = gfx::GLSurface::GetExtensions(); 272 return true;
273 extensions += extensions.empty() ? "" : " ";
274 extensions += "GL_CHROMIUM_post_sub_buffer";
275 return extensions;
276 } 273 }
277 274
278 gfx::Size TextureImageTransportSurface::GetSize() { 275 gfx::Size TextureImageTransportSurface::GetSize() {
279 return current_size_; 276 return current_size_;
280 } 277 }
281 278
282 void* TextureImageTransportSurface::GetHandle() { 279 void* TextureImageTransportSurface::GetHandle() {
283 return surface_.get() ? surface_->GetHandle() : NULL; 280 return surface_.get() ? surface_->GetHandle() : NULL;
284 } 281 }
285 282
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 448
452 #ifndef NDEBUG 449 #ifndef NDEBUG
453 GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER); 450 GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER);
454 if (status != GL_FRAMEBUFFER_COMPLETE) { 451 if (status != GL_FRAMEBUFFER_COMPLETE) {
455 DLOG(FATAL) << "Framebuffer incomplete: " << status; 452 DLOG(FATAL) << "Framebuffer incomplete: " << status;
456 } 453 }
457 #endif 454 #endif
458 } 455 }
459 456
460 } // namespace content 457 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/texture_image_transport_surface.h ('k') | gpu/command_buffer/service/gl_surface_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698