| 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 "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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 } | 344 } |
| 345 | 345 |
| 346 // Even if MakeCurrent fails, schedule anyway, to trigger the lost context | 346 // Even if MakeCurrent fails, schedule anyway, to trigger the lost context |
| 347 // logic. | 347 // logic. |
| 348 if (did_unschedule_) { | 348 if (did_unschedule_) { |
| 349 did_unschedule_ = false; | 349 did_unschedule_ = false; |
| 350 helper_->SetScheduled(true); | 350 helper_->SetScheduled(true); |
| 351 } | 351 } |
| 352 } | 352 } |
| 353 | 353 |
| 354 void TextureImageTransportSurface::OnResizeViewACK() { | |
| 355 NOTREACHED(); | |
| 356 } | |
| 357 | |
| 358 void TextureImageTransportSurface::ReleaseBackTexture() { | 354 void TextureImageTransportSurface::ReleaseBackTexture() { |
| 359 DCHECK(IsContextValid(helper_.get())); | 355 DCHECK(IsContextValid(helper_.get())); |
| 360 backbuffer_ = NULL; | 356 backbuffer_ = NULL; |
| 361 back_mailbox_ = Mailbox(); | 357 back_mailbox_ = Mailbox(); |
| 362 glFlush(); | 358 glFlush(); |
| 363 CHECK_GL_ERROR(); | 359 CHECK_GL_ERROR(); |
| 364 } | 360 } |
| 365 | 361 |
| 366 void TextureImageTransportSurface::ReleaseFrontTexture() { | 362 void TextureImageTransportSurface::ReleaseFrontTexture() { |
| 367 DCHECK(IsContextValid(helper_.get())); | 363 DCHECK(IsContextValid(helper_.get())); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 | 450 |
| 455 #ifndef NDEBUG | 451 #ifndef NDEBUG |
| 456 GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER); | 452 GLenum status = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER); |
| 457 if (status != GL_FRAMEBUFFER_COMPLETE) { | 453 if (status != GL_FRAMEBUFFER_COMPLETE) { |
| 458 DLOG(FATAL) << "Framebuffer incomplete: " << status; | 454 DLOG(FATAL) << "Framebuffer incomplete: " << status; |
| 459 } | 455 } |
| 460 #endif | 456 #endif |
| 461 } | 457 } |
| 462 | 458 |
| 463 } // namespace content | 459 } // namespace content |
| OLD | NEW |