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

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

Issue 1785153004: Made full screen video with DevTools not flash black on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments and member fn ptr to base::Callback Created 4 years, 9 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual uint32_t GetTextureTarget() const = 0; 67 virtual uint32_t GetTextureTarget() const = 0;
68 68
69 // Make the provided PictureBuffer draw the image that is represented by 69 // Make the provided PictureBuffer draw the image that is represented by
70 // the decoded output buffer at codec_buffer_index. 70 // the decoded output buffer at codec_buffer_index.
71 virtual void UseCodecBufferForPictureBuffer( 71 virtual void UseCodecBufferForPictureBuffer(
72 int32_t codec_buffer_index, 72 int32_t codec_buffer_index,
73 const media::PictureBuffer& picture_buffer) = 0; 73 const media::PictureBuffer& picture_buffer) = 0;
74 74
75 // Notify strategy that a picture buffer has been assigned. 75 // Notify strategy that a picture buffer has been assigned.
76 virtual void AssignOnePictureBuffer( 76 virtual void AssignOnePictureBuffer(
77 const media::PictureBuffer& picture_buffer) {} 77 const media::PictureBuffer& picture_buffer,
78 bool have_context) {}
78 79
79 // Notify strategy that a picture buffer has been reused. 80 // Notify strategy that a picture buffer has been reused.
80 virtual void ReuseOnePictureBuffer( 81 virtual void ReuseOnePictureBuffer(
81 const media::PictureBuffer& picture_buffer) {} 82 const media::PictureBuffer& picture_buffer) {}
82 83
83 // Notify strategy that we are about to dismiss a picture buffer. 84 // Notify strategy that we are about to dismiss a picture buffer.
84 virtual void DismissOnePictureBuffer( 85 virtual void DismissOnePictureBuffer(
85 const media::PictureBuffer& picture_buffer) {} 86 const media::PictureBuffer& picture_buffer) {}
86 87
87 // Notify strategy that we have a new android MediaCodec instance. This 88 // Notify strategy that we have a new android MediaCodec instance. This
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 335
335 // WeakPtrFactory for posting tasks back to |this|. 336 // WeakPtrFactory for posting tasks back to |this|.
336 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 337 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
337 338
338 friend class AndroidVideoDecodeAcceleratorTest; 339 friend class AndroidVideoDecodeAcceleratorTest;
339 }; 340 };
340 341
341 } // namespace content 342 } // namespace content
342 343
343 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 344 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698