| Index: content/browser/compositor/buffer_queue.cc
|
| diff --git a/content/browser/compositor/buffer_queue.cc b/content/browser/compositor/buffer_queue.cc
|
| index b9b750ac2db96dd11d962850920bab6fb1e23114..c82741654b59cf4a259091a154d6e7324c7a0b49 100644
|
| --- a/content/browser/compositor/buffer_queue.cc
|
| +++ b/content/browser/compositor/buffer_queue.cc
|
| @@ -81,7 +81,7 @@ void BufferQueue::UpdateBufferDamage(const gfx::Rect& damage) {
|
| }
|
|
|
| void BufferQueue::SwapBuffers(const gfx::Rect& damage) {
|
| - if (damage != gfx::Rect(size_)) {
|
| + if (!damage.IsEmpty() && damage != gfx::Rect(size_)) {
|
| // We must have a frame available to copy from.
|
| DCHECK(!in_flight_surfaces_.empty() || displayed_surface_.texture);
|
| unsigned int texture_id = !in_flight_surfaces_.empty()
|
|
|