| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/browser/compositor/buffer_queue.h" | 5 #include "content/browser/compositor/buffer_queue.h" |
| 6 | 6 |
| 7 #include "base/containers/adapters.h" | 7 #include "base/containers/adapters.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "cc/output/context_provider.h" |
| 9 #include "content/browser/compositor/gl_helper.h" | 10 #include "content/browser/compositor/gl_helper.h" |
| 10 #include "content/browser/compositor/image_transport_factory.h" | |
| 11 #include "content/common/gpu/client/context_provider_command_buffer.h" | |
| 12 #include "gpu/GLES2/gl2extchromium.h" | 11 #include "gpu/GLES2/gl2extchromium.h" |
| 13 #include "gpu/command_buffer/client/gles2_interface.h" | 12 #include "gpu/command_buffer/client/gles2_interface.h" |
| 14 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | 13 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" |
| 15 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" | 14 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
| 16 #include "gpu/command_buffer/service/image_factory.h" | 15 #include "gpu/command_buffer/service/image_factory.h" |
| 17 #include "third_party/skia/include/core/SkRect.h" | 16 #include "third_party/skia/include/core/SkRect.h" |
| 18 #include "third_party/skia/include/core/SkRegion.h" | 17 #include "third_party/skia/include/core/SkRegion.h" |
| 19 #include "ui/gfx/gpu_memory_buffer.h" | 18 #include "ui/gfx/gpu_memory_buffer.h" |
| 20 #include "ui/gfx/skia_util.h" | 19 #include "ui/gfx/skia_util.h" |
| 21 | 20 |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 buffer(buffer.release()), | 256 buffer(buffer.release()), |
| 258 texture(texture), | 257 texture(texture), |
| 259 image(image), | 258 image(image), |
| 260 damage(rect) {} | 259 damage(rect) {} |
| 261 | 260 |
| 262 BufferQueue::AllocatedSurface::~AllocatedSurface() { | 261 BufferQueue::AllocatedSurface::~AllocatedSurface() { |
| 263 buffer_queue->FreeSurfaceResources(this); | 262 buffer_queue->FreeSurfaceResources(this); |
| 264 } | 263 } |
| 265 | 264 |
| 266 } // namespace content | 265 } // namespace content |
| OLD | NEW |