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 "content/browser/compositor/gl_helper.h" |
9 #include "content/browser/compositor/image_transport_factory.h" | 10 #include "content/browser/compositor/image_transport_factory.h" |
10 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 11 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
11 #include "content/common/gpu/client/context_provider_command_buffer.h" | 12 #include "content/common/gpu/client/context_provider_command_buffer.h" |
12 #include "content/common/gpu/client/gl_helper.h" | |
13 #include "gpu/GLES2/gl2extchromium.h" | 13 #include "gpu/GLES2/gl2extchromium.h" |
14 #include "gpu/command_buffer/client/gles2_interface.h" | 14 #include "gpu/command_buffer/client/gles2_interface.h" |
15 #include "gpu/command_buffer/service/image_factory.h" | 15 #include "gpu/command_buffer/service/image_factory.h" |
16 #include "third_party/skia/include/core/SkRect.h" | 16 #include "third_party/skia/include/core/SkRect.h" |
17 #include "third_party/skia/include/core/SkRegion.h" | 17 #include "third_party/skia/include/core/SkRegion.h" |
18 #include "ui/gfx/gpu_memory_buffer.h" | 18 #include "ui/gfx/gpu_memory_buffer.h" |
19 #include "ui/gfx/skia_util.h" | 19 #include "ui/gfx/skia_util.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 buffer(buffer.release()), | 258 buffer(buffer.release()), |
259 texture(texture), | 259 texture(texture), |
260 image(image), | 260 image(image), |
261 damage(rect) {} | 261 damage(rect) {} |
262 | 262 |
263 BufferQueue::AllocatedSurface::~AllocatedSurface() { | 263 BufferQueue::AllocatedSurface::~AllocatedSurface() { |
264 buffer_queue->FreeSurfaceResources(this); | 264 buffer_queue->FreeSurfaceResources(this); |
265 } | 265 } |
266 | 266 |
267 } // namespace content | 267 } // namespace content |
OLD | NEW |