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

Side by Side Diff: media/renderers/gpu_video_accelerator_factories.h

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constrain includes Created 5 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 const gfx::Size& size, 58 const gfx::Size& size,
59 std::vector<uint32>* texture_ids, 59 std::vector<uint32>* texture_ids,
60 std::vector<gpu::Mailbox>* texture_mailboxes, 60 std::vector<gpu::Mailbox>* texture_mailboxes,
61 uint32 texture_target) = 0; 61 uint32 texture_target) = 0;
62 virtual void DeleteTexture(uint32 texture_id) = 0; 62 virtual void DeleteTexture(uint32 texture_id) = 0;
63 63
64 virtual void WaitSyncPoint(uint32 sync_point) = 0; 64 virtual void WaitSyncPoint(uint32 sync_point) = 0;
65 65
66 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 66 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
67 const gfx::Size& size, 67 const gfx::Size& size,
68 gfx::GpuMemoryBuffer::Format format, 68 gfx::BufferFormat format,
69 gfx::GpuMemoryBuffer::Usage usage) = 0; 69 gfx::BufferUsage usage) = 0;
70 70
71 virtual unsigned ImageTextureTarget() = 0; 71 virtual unsigned ImageTextureTarget() = 0;
72 virtual bool IsTextureRGSupported() = 0; 72 virtual bool IsTextureRGSupported() = 0;
73 73
74 virtual gpu::gles2::GLES2Interface* GetGLES2Interface() = 0; 74 virtual gpu::gles2::GLES2Interface* GetGLES2Interface() = 0;
75 75
76 // Allocate & return a shared memory segment. 76 // Allocate & return a shared memory segment.
77 virtual scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) = 0; 77 virtual scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) = 0;
78 78
79 // Returns the task runner the video accelerator runs on. 79 // Returns the task runner the video accelerator runs on.
80 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0; 80 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0;
81 81
82 // Returns the supported codec profiles of video decode accelerator. 82 // Returns the supported codec profiles of video decode accelerator.
83 virtual VideoDecodeAccelerator::SupportedProfiles 83 virtual VideoDecodeAccelerator::SupportedProfiles
84 GetVideoDecodeAcceleratorSupportedProfiles() = 0; 84 GetVideoDecodeAcceleratorSupportedProfiles() = 0;
85 85
86 // Returns the supported codec profiles of video encode accelerator. 86 // Returns the supported codec profiles of video encode accelerator.
87 virtual VideoEncodeAccelerator::SupportedProfiles 87 virtual VideoEncodeAccelerator::SupportedProfiles
88 GetVideoEncodeAcceleratorSupportedProfiles() = 0; 88 GetVideoEncodeAcceleratorSupportedProfiles() = 0;
89 89
90 protected: 90 protected:
91 friend class base::RefCountedThreadSafe<GpuVideoAcceleratorFactories>; 91 friend class base::RefCountedThreadSafe<GpuVideoAcceleratorFactories>;
92 virtual ~GpuVideoAcceleratorFactories() {} 92 virtual ~GpuVideoAcceleratorFactories() {}
93 }; 93 };
94 94
95 } // namespace media 95 } // namespace media
96 96
97 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 97 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698