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

Side by Side Diff: content/renderer/media/renderer_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
« no previous file with comments | « no previous file | content/renderer/media/renderer_gpu_video_accelerator_factories.cc » ('j') | 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 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 std::unique_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator() 63 std::unique_ptr<media::VideoEncodeAccelerator> CreateVideoEncodeAccelerator()
64 override; 64 override;
65 // Creates textures and produces them into mailboxes. Returns true on success 65 // Creates textures and produces them into mailboxes. Returns true on success
66 // or false on failure. 66 // or false on failure.
67 bool CreateTextures(int32_t count, 67 bool CreateTextures(int32_t count,
68 const gfx::Size& size, 68 const gfx::Size& size,
69 std::vector<uint32_t>* texture_ids, 69 std::vector<uint32_t>* texture_ids,
70 std::vector<gpu::Mailbox>* texture_mailboxes, 70 std::vector<gpu::Mailbox>* texture_mailboxes,
71 uint32_t texture_target) override; 71 uint32_t texture_target) override;
72 void DeleteTexture(uint32_t texture_id) override; 72 void DeleteTexture(uint32_t texture_id) override;
73 gpu::SyncToken CreateSyncToken() override;
73 void WaitSyncToken(const gpu::SyncToken& sync_token) override; 74 void WaitSyncToken(const gpu::SyncToken& sync_token) override;
74 75
75 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 76 std::unique_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
76 const gfx::Size& size, 77 const gfx::Size& size,
77 gfx::BufferFormat format, 78 gfx::BufferFormat format,
78 gfx::BufferUsage usage) override; 79 gfx::BufferUsage usage) override;
79 80
80 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override; 81 bool ShouldUseGpuMemoryBuffersForVideoFrames() const override;
81 unsigned ImageTextureTarget(gfx::BufferFormat format) override; 82 unsigned ImageTextureTarget(gfx::BufferFormat format) override;
82 media::VideoPixelFormat VideoFrameOutputFormat() override; 83 media::VideoPixelFormat VideoFrameOutputFormat() override;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 129
129 // For sending requests to allocate shared memory in the Browser process. 130 // For sending requests to allocate shared memory in the Browser process.
130 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 131 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
131 132
132 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories); 133 DISALLOW_COPY_AND_ASSIGN(RendererGpuVideoAcceleratorFactories);
133 }; 134 };
134 135
135 } // namespace content 136 } // namespace content
136 137
137 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 138 #endif // CONTENT_RENDERER_MEDIA_RENDERER_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/renderer_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698