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

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

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Rebase. Created 3 years, 11 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 | « media/mojo/services/mojo_video_decoder_service.cc ('k') | 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 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 NV12_SINGLE_GMB, // One NV12 GMB 66 NV12_SINGLE_GMB, // One NV12 GMB
67 NV12_DUAL_GMB, // One R8, one RG88 GMB 67 NV12_DUAL_GMB, // One R8, one RG88 GMB
68 }; 68 };
69 69
70 // Return whether GPU encoding/decoding is enabled. 70 // Return whether GPU encoding/decoding is enabled.
71 virtual bool IsGpuVideoAcceleratorEnabled() = 0; 71 virtual bool IsGpuVideoAcceleratorEnabled() = 0;
72 72
73 // Return the channel token, or an empty token if the channel is unusable. 73 // Return the channel token, or an empty token if the channel is unusable.
74 virtual base::UnguessableToken GetChannelToken() = 0; 74 virtual base::UnguessableToken GetChannelToken() = 0;
75 75
76 // Returns the |route_id| of the command buffer.
77 virtual int32_t GetCommandBufferRouteId() = 0;
tguilbert 2017/01/10 01:16:35 Should '0' as the error value be documented?
78
76 // Caller owns returned pointer, but should call Destroy() on it (instead of 79 // Caller owns returned pointer, but should call Destroy() on it (instead of
77 // directly deleting) for proper destruction, as per the 80 // directly deleting) for proper destruction, as per the
78 // VideoDecodeAccelerator interface. 81 // VideoDecodeAccelerator interface.
79 virtual std::unique_ptr<VideoDecodeAccelerator> 82 virtual std::unique_ptr<VideoDecodeAccelerator>
80 CreateVideoDecodeAccelerator() = 0; 83 CreateVideoDecodeAccelerator() = 0;
81 84
82 // Caller owns returned pointer, but should call Destroy() on it (instead of 85 // Caller owns returned pointer, but should call Destroy() on it (instead of
83 // directly deleting) for proper destruction, as per the 86 // directly deleting) for proper destruction, as per the
84 // VideoEncodeAccelerator interface. 87 // VideoEncodeAccelerator interface.
85 virtual std::unique_ptr<VideoEncodeAccelerator> 88 virtual std::unique_ptr<VideoEncodeAccelerator>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 GetVideoEncodeAcceleratorSupportedProfiles() = 0; 129 GetVideoEncodeAcceleratorSupportedProfiles() = 0;
127 130
128 protected: 131 protected:
129 friend class base::RefCounted<GpuVideoAcceleratorFactories>; 132 friend class base::RefCounted<GpuVideoAcceleratorFactories>;
130 virtual ~GpuVideoAcceleratorFactories() {} 133 virtual ~GpuVideoAcceleratorFactories() {}
131 }; 134 };
132 135
133 } // namespace media 136 } // namespace media
134 137
135 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 138 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_video_decoder_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698