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

Side by Side Diff: media/video/video_decode_accelerator.h

Issue 1680213002: Start using deferred rendering for WebView on L. Base URL: https://chromium.googlesource.com/chromium/src.git@measure_copy
Patch Set: cleanup 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // more decoded output. See VideoDecoder::CanReadWithoutStalling for 54 // more decoded output. See VideoDecoder::CanReadWithoutStalling for
55 // more context. 55 // more context.
56 // If this flag is set, then the VDA does not make this guarantee. The 56 // If this flag is set, then the VDA does not make this guarantee. The
57 // client must return PictureBuffers to be sure that new frames will be 57 // client must return PictureBuffers to be sure that new frames will be
58 // provided via PictureReady. 58 // provided via PictureReady.
59 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE = 1 << 0, 59 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE = 1 << 0,
60 60
61 // Whether the VDA supports being configured with an output surface for 61 // Whether the VDA supports being configured with an output surface for
62 // it to render frames to. For example, SurfaceViews on Android. 62 // it to render frames to. For example, SurfaceViews on Android.
63 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1, 63 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1,
64
65 // If set, then all video frames must be copied before they can be sent
66 // to the browser compositor. This is to support WebView.
67 COPY_REQUIRED = 1 << 2,
64 }; 68 };
65 69
66 SupportedProfiles supported_profiles; 70 SupportedProfiles supported_profiles;
67 uint32_t flags; 71 uint32_t flags;
68 }; 72 };
69 73
70 // Enumeration of potential errors generated by the API. 74 // Enumeration of potential errors generated by the API.
71 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not 75 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not
72 // rearrange, reuse or remove values as they are used for gathering UMA 76 // rearrange, reuse or remove values as they are used for gathering UMA
73 // statistics. 77 // statistics.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator> 255 // Specialize std::default_delete so that scoped_ptr<VideoDecodeAccelerator>
252 // uses "Destroy()" instead of trying to use the destructor. 256 // uses "Destroy()" instead of trying to use the destructor.
253 template <> 257 template <>
254 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 258 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
255 void operator()(media::VideoDecodeAccelerator* vda) const; 259 void operator()(media::VideoDecodeAccelerator* vda) const;
256 }; 260 };
257 261
258 } // namespace std 262 } // namespace std
259 263
260 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 264 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | ui/android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698