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

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

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reveman@ comments. Created 5 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
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 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_
6 #define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_
7 7
8 #include <IOSurface/IOSurfaceAPI.h> 8 #include <IOSurface/IOSurfaceAPI.h>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 29 matching lines...) Expand all
40 const gfx::Size& size, 40 const gfx::Size& size,
41 gfx::GpuMemoryBuffer::Format format, 41 gfx::GpuMemoryBuffer::Format format,
42 gfx::GpuMemoryBuffer::Usage usage, 42 gfx::GpuMemoryBuffer::Usage usage,
43 int client_id, 43 int client_id,
44 gfx::PluginWindowHandle surface_handle) override; 44 gfx::PluginWindowHandle surface_handle) override;
45 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id, 45 void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
46 int client_id) override; 46 int client_id) override;
47 gpu::ImageFactory* AsImageFactory() override; 47 gpu::ImageFactory* AsImageFactory() override;
48 48
49 // Overridden from gpu::ImageFactory: 49 // Overridden from gpu::ImageFactory:
50 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( 50 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffers(
51 const gfx::GpuMemoryBufferHandle& handle, 51 const std::vector<gfx::GpuMemoryBufferHandle>& handles,
52 const gfx::Size& size, 52 const gfx::Size& size,
53 gfx::GpuMemoryBuffer::Format format, 53 const std::vector<gfx::GpuMemoryBuffer::Format>& formats,
54 unsigned internalformat, 54 unsigned internalformat,
55 int client_id) override; 55 int client_id) override;
56 56
57 private: 57 private:
58 typedef std::pair<int, int> IOSurfaceMapKey; 58 typedef std::pair<int, int> IOSurfaceMapKey;
59 typedef base::hash_map<IOSurfaceMapKey, base::ScopedCFTypeRef<IOSurfaceRef>> 59 typedef base::hash_map<IOSurfaceMapKey, base::ScopedCFTypeRef<IOSurfaceRef>>
60 IOSurfaceMap; 60 IOSurfaceMap;
61 IOSurfaceMap io_surfaces_; 61 IOSurfaceMap io_surfaces_;
62 base::Lock io_surfaces_lock_; 62 base::Lock io_surfaces_lock_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryIOSurface); 64 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferFactoryIOSurface);
65 }; 65 };
66 66
67 } // namespace content 67 } // namespace content
68 68
69 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_ 69 #endif // CONTENT_COMMON_GPU_GPU_MEMORY_BUFFER_FACTORY_IO_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698