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

Side by Side Diff: content/browser/compositor/buffer_queue.cc

Issue 1895803002: buffer_queue.cc: Remove unnecessary layer-violating include (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase fix Created 4 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 "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 "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
11 #include "content/browser/compositor/gl_helper.h" 11 #include "content/browser/compositor/gl_helper.h"
12 #include "gpu/GLES2/gl2extchromium.h" 12 #include "gpu/GLES2/gl2extchromium.h"
13 #include "gpu/command_buffer/client/gles2_interface.h" 13 #include "gpu/command_buffer/client/gles2_interface.h"
14 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" 14 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h"
15 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" 15 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h"
16 #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
22 namespace content { 21 namespace content {
23 22
24 BufferQueue::BufferQueue(scoped_refptr<cc::ContextProvider> context_provider, 23 BufferQueue::BufferQueue(scoped_refptr<cc::ContextProvider> context_provider,
25 unsigned int texture_target, 24 unsigned int texture_target,
26 unsigned int internalformat, 25 unsigned int internalformat,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698