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

Side by Side Diff: content/common/gpu/media/video_decode_accelerator_impl.h

Issue 24762003: Set the texture to cleared in VideoDecodeAccelerator::PictureReady. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: refactor SendPictureReady by kcwu's suggestion Created 7 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
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.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 CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_
6 #define CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_
7 7
8 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
9 #include "media/video/video_decode_accelerator.h" 9 #include "media/video/video_decode_accelerator.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 class CONTENT_EXPORT VideoDecodeAcceleratorImpl 13 class CONTENT_EXPORT VideoDecodeAcceleratorImpl
14 : public media::VideoDecodeAccelerator { 14 : public media::VideoDecodeAccelerator {
15 public: 15 public:
16 VideoDecodeAcceleratorImpl(); 16 VideoDecodeAcceleratorImpl();
17 virtual ~VideoDecodeAcceleratorImpl(); 17 virtual ~VideoDecodeAcceleratorImpl();
18 18
19 // Returns true if VDA::Decode and VDA::Client callbacks can run on the IO 19 // Returns true if VDA::Decode and VDA::Client callbacks can run on the IO
20 // thread. Otherwise they will run on the GPU child thread. The purpose of 20 // thread. Otherwise they will run on the GPU child thread. The purpose of
21 // running Decode on the IO thread is to reduce decode latency. Note Decode 21 // running Decode on the IO thread is to reduce decode latency. Note Decode
22 // should return as soon as possible and not block on the IO thread. 22 // should return as soon as possible and not block on the IO thread. Also,
23 // PictureReady should be run on the child thread if a picture is delivered
24 // the first time so it can be cleared.
23 virtual bool CanDecodeOnIOThread(); 25 virtual bool CanDecodeOnIOThread();
24 }; 26 };
25 27
26 } // namespace content 28 } // namespace content
27 29
28 #endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_ 30 #endif // CONTENT_COMMON_GPU_MEDIA_VIDEO_DECODE_ACCELERATOR_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698