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

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

Issue 2254993003: Avoid creating sync token when only change is new hardware video frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix deps Created 4 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual std::unique_ptr<VideoEncodeAccelerator> 73 virtual std::unique_ptr<VideoEncodeAccelerator>
74 CreateVideoEncodeAccelerator() = 0; 74 CreateVideoEncodeAccelerator() = 0;
75 75
76 // Allocate & delete native textures. 76 // Allocate & delete native textures.
77 virtual bool CreateTextures(int32_t count, 77 virtual bool CreateTextures(int32_t count,
78 const gfx::Size& size, 78 const gfx::Size& size,
79 std::vector<uint32_t>* texture_ids, 79 std::vector<uint32_t>* texture_ids,
80 std::vector<gpu::Mailbox>* texture_mailboxes, 80 std::vector<gpu::Mailbox>* texture_mailboxes,
81 uint32_t texture_target) = 0; 81 uint32_t texture_target) = 0;
82 virtual void DeleteTexture(uint32_t texture_id) = 0; 82 virtual void DeleteTexture(uint32_t texture_id) = 0;
83 virtual gpu::SyncToken CreateSyncToken() = 0;
83 84
84 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0; 85 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0;
85 86
86 virtual std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 87 virtual std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
87 const gfx::Size& size, 88 const gfx::Size& size,
88 gfx::BufferFormat format, 89 gfx::BufferFormat format,
89 gfx::BufferUsage usage) = 0; 90 gfx::BufferUsage usage) = 0;
90 91
91 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0; 92 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0;
92 virtual unsigned ImageTextureTarget(gfx::BufferFormat format) = 0; 93 virtual unsigned ImageTextureTarget(gfx::BufferFormat format) = 0;
(...skipping 20 matching lines...) Expand all
113 GetVideoEncodeAcceleratorSupportedProfiles() = 0; 114 GetVideoEncodeAcceleratorSupportedProfiles() = 0;
114 115
115 protected: 116 protected:
116 friend class base::RefCounted<GpuVideoAcceleratorFactories>; 117 friend class base::RefCounted<GpuVideoAcceleratorFactories>;
117 virtual ~GpuVideoAcceleratorFactories() {} 118 virtual ~GpuVideoAcceleratorFactories() {}
118 }; 119 };
119 120
120 } // namespace media 121 } // namespace media
121 122
122 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 123 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/renderers/mock_gpu_video_accelerator_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698