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

Side by Side Diff: components/viz/display_compositor/buffer_queue.cc

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 years, 7 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
OLDNEW
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 "components/display_compositor/buffer_queue.h" 5 #include "components/viz/display_compositor/buffer_queue.h"
6 6
7 #include "base/containers/adapters.h" 7 #include "base/containers/adapters.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "components/display_compositor/gl_helper.h" 10 #include "components/viz/display_compositor/gl_helper.h"
11 #include "gpu/GLES2/gl2extchromium.h" 11 #include "gpu/GLES2/gl2extchromium.h"
12 #include "gpu/command_buffer/client/gles2_interface.h" 12 #include "gpu/command_buffer/client/gles2_interface.h"
13 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 13 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
14 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" 14 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h"
15 #include "third_party/skia/include/core/SkRect.h" 15 #include "third_party/skia/include/core/SkRect.h"
16 #include "third_party/skia/include/core/SkRegion.h" 16 #include "third_party/skia/include/core/SkRegion.h"
17 #include "ui/display/types/display_snapshot.h" 17 #include "ui/display/types/display_snapshot.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 display_compositor { 21 namespace viz {
22 22
23 BufferQueue::BufferQueue(gpu::gles2::GLES2Interface* gl, 23 BufferQueue::BufferQueue(gpu::gles2::GLES2Interface* gl,
24 uint32_t texture_target, 24 uint32_t texture_target,
25 uint32_t internal_format, 25 uint32_t internal_format,
26 gfx::BufferFormat format, 26 gfx::BufferFormat format,
27 GLHelper* gl_helper, 27 GLHelper* gl_helper,
28 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 28 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
29 gpu::SurfaceHandle surface_handle) 29 gpu::SurfaceHandle surface_handle)
30 : gl_(gl), 30 : gl_(gl),
31 fbo_(0), 31 fbo_(0),
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 buffer(buffer.release()), 293 buffer(buffer.release()),
294 texture(texture), 294 texture(texture),
295 image(image), 295 image(image),
296 stencil(stencil), 296 stencil(stencil),
297 damage(rect) {} 297 damage(rect) {}
298 298
299 BufferQueue::AllocatedSurface::~AllocatedSurface() { 299 BufferQueue::AllocatedSurface::~AllocatedSurface() {
300 buffer_queue->FreeSurfaceResources(this); 300 buffer_queue->FreeSurfaceResources(this);
301 } 301 }
302 302
303 } // namespace display_compositor 303 } // namespace viz
OLDNEW
« no previous file with comments | « components/viz/display_compositor/buffer_queue.h ('k') | components/viz/display_compositor/buffer_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698