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

Side by Side Diff: content/renderer/media/renderer_gpu_video_accelerator_factories.h

Issue 568413002: Add VEA supported profiles to GPUInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo and update gpu_info_unittest Created 6 years, 2 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 CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 std::vector<uint32>* texture_ids, 56 std::vector<uint32>* texture_ids,
57 std::vector<gpu::Mailbox>* texture_mailboxes, 57 std::vector<gpu::Mailbox>* texture_mailboxes,
58 uint32 texture_target) OVERRIDE; 58 uint32 texture_target) OVERRIDE;
59 virtual void DeleteTexture(uint32 texture_id) OVERRIDE; 59 virtual void DeleteTexture(uint32 texture_id) OVERRIDE;
60 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; 60 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE;
61 virtual void ReadPixels(uint32 texture_id, 61 virtual void ReadPixels(uint32 texture_id,
62 const gfx::Rect& visible_rect, 62 const gfx::Rect& visible_rect,
63 const SkBitmap& pixels) OVERRIDE; 63 const SkBitmap& pixels) OVERRIDE;
64 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE; 64 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE;
65 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE; 65 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE;
66 virtual std::vector<media::VideoEncodeAccelerator::SupportedProfile>
67 GetVideoEncodeAcceleratorSupportedProfiles() OVERRIDE;
66 68
67 private: 69 private:
68 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>; 70 friend class base::RefCountedThreadSafe<RendererGpuVideoAcceleratorFactories>;
69 RendererGpuVideoAcceleratorFactories( 71 RendererGpuVideoAcceleratorFactories(
70 GpuChannelHost* gpu_channel_host, 72 GpuChannelHost* gpu_channel_host,
71 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, 73 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner,
72 const scoped_refptr<ContextProviderCommandBuffer>& context_provider); 74 const scoped_refptr<ContextProviderCommandBuffer>& context_provider);
73 virtual ~RendererGpuVideoAcceleratorFactories(); 75 virtual ~RendererGpuVideoAcceleratorFactories();
74 76
75 // Helper to bind |context_provider| to the |task_runner_| thread after 77 // Helper to bind |context_provider| to the |task_runner_| thread after
(...skipping 12 matching lines...) Expand all
88 90
89 // For sending requests to allocate shared memory in the Browser process. 91 // For sending requests to allocate shared memory in the Browser process.
90 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 92 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
91 93
92 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); 94 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories);
93 }; 95 };
94 96
95 } // namespace content 97 } // namespace content
96 98
97 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 99 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698