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

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

Issue 2052103002: Enable deferred rendering strategy for Android WebView for Spitzer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spitzer-aw-disable-tests
Patch Set: Addressed comments, fixed Windows compilation Created 4 years, 6 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 | « media/gpu/android_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 (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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE = 1 << 0, 68 NEEDS_ALL_PICTURE_BUFFERS_TO_DECODE = 1 << 0,
69 69
70 // Whether the VDA supports being configured with an output surface for 70 // Whether the VDA supports being configured with an output surface for
71 // it to render frames to. For example, SurfaceViews on Android. 71 // it to render frames to. For example, SurfaceViews on Android.
72 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1, 72 SUPPORTS_EXTERNAL_OUTPUT_SURFACE = 1 << 1,
73 73
74 // If set, the VDA will use deferred initialization if the config 74 // If set, the VDA will use deferred initialization if the config
75 // indicates that the client supports it as well. Refer to 75 // indicates that the client supports it as well. Refer to
76 // NotifyInitializationComplete for more details. 76 // NotifyInitializationComplete for more details.
77 SUPPORTS_DEFERRED_INITIALIZATION = 1 << 2, 77 SUPPORTS_DEFERRED_INITIALIZATION = 1 << 2,
78
79 // If set, video frames will have COPY_REQUIRED flag which will cause
80 // an extra texture copy during composition.
81 REQUIRES_TEXTURE_COPY = 1 << 3,
78 }; 82 };
79 83
80 SupportedProfiles supported_profiles; 84 SupportedProfiles supported_profiles;
81 uint32_t flags; 85 uint32_t flags;
82 }; 86 };
83 87
84 // Enumeration of potential errors generated by the API. 88 // Enumeration of potential errors generated by the API.
85 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not 89 // Note: Keep these in sync with PP_VideoDecodeError_Dev. Also do not
86 // rearrange, reuse or remove values as they are used for gathering UMA 90 // rearrange, reuse or remove values as they are used for gathering UMA
87 // statistics. 91 // statistics.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to 344 // std::unique_ptr<VideoDecodeAccelerator> uses "Destroy()" instead of trying to
341 // use the destructor. 345 // use the destructor.
342 template <> 346 template <>
343 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> { 347 struct MEDIA_EXPORT default_delete<media::VideoDecodeAccelerator> {
344 void operator()(media::VideoDecodeAccelerator* vda) const; 348 void operator()(media::VideoDecodeAccelerator* vda) const;
345 }; 349 };
346 350
347 } // namespace std 351 } // namespace std
348 352
349 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 353 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/android_video_decode_accelerator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698