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

Side by Side Diff: content/common/gpu/gpu_memory_buffer_factory_io_surface.cc

Issue 1821883002: Remove unnecessary layer-violating include in gpu_memory_buffer_factory_io_surface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/common/gpu/gpu_memory_buffer_factory_io_surface.h" 5 #include "content/common/gpu/gpu_memory_buffer_factory_io_surface.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
11 #include "ui/gfx/buffer_format_util.h" 10 #include "ui/gfx/buffer_format_util.h"
12 #include "ui/gfx/mac/io_surface.h" 11 #include "ui/gfx/mac/io_surface.h"
13 #include "ui/gl/gl_image_io_surface.h" 12 #include "ui/gl/gl_image_io_surface.h"
14 13
15 namespace content { 14 namespace content {
16 15
17 GpuMemoryBufferFactoryIOSurface::GpuMemoryBufferFactoryIOSurface() { 16 GpuMemoryBufferFactoryIOSurface::GpuMemoryBufferFactoryIOSurface() {
18 } 17 }
19 18
20 GpuMemoryBufferFactoryIOSurface::~GpuMemoryBufferFactoryIOSurface() { 19 GpuMemoryBufferFactoryIOSurface::~GpuMemoryBufferFactoryIOSurface() {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 111
113 scoped_refptr<gl::GLImageIOSurface> image( 112 scoped_refptr<gl::GLImageIOSurface> image(
114 new gl::GLImageIOSurface(size, internalformat)); 113 new gl::GLImageIOSurface(size, internalformat));
115 if (!image->Initialize(it->second.get(), handle.id, format)) 114 if (!image->Initialize(it->second.get(), handle.id, format))
116 return scoped_refptr<gl::GLImage>(); 115 return scoped_refptr<gl::GLImage>();
117 116
118 return image; 117 return image;
119 } 118 }
120 119
121 } // namespace content 120 } // 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