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

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

Issue 2507463004: Fix broken SurfaceView usage on < M devices. (Closed)
Patch Set: Created 4 years, 1 month 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 MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 // when the EOS buffer is received. 376 // when the EOS buffer is received.
377 bool codec_needs_reset_; 377 bool codec_needs_reset_;
378 378
379 // True if surface creation and |picture_buffer_manager_| initialization has 379 // True if surface creation and |picture_buffer_manager_| initialization has
380 // been defered until the first Decode() call. 380 // been defered until the first Decode() call.
381 bool defer_surface_creation_; 381 bool defer_surface_creation_;
382 382
383 // Has a value if a SetSurface() call has occurred and a new surface should be 383 // Has a value if a SetSurface() call has occurred and a new surface should be
384 // switched to when possible. Cleared during OnDestroyingSurface() and if all 384 // switched to when possible. Cleared during OnDestroyingSurface() and if all
385 // pictures have been rendered in DequeueOutput(). 385 // pictures have been rendered in DequeueOutput().
386 int32_t surface_id_;
387 base::Optional<int32_t> pending_surface_id_; 386 base::Optional<int32_t> pending_surface_id_;
388 387
389 // Copy of the VDA::Config we were given. 388 // Copy of the VDA::Config we were given.
390 Config config_; 389 Config config_;
391 390
392 OnDestroyingSurfaceCallback on_destroying_surface_cb_; 391 OnDestroyingSurfaceCallback on_destroying_surface_cb_;
393 392
394 // WeakPtrFactory for posting tasks back to |this|. 393 // WeakPtrFactory for posting tasks back to |this|.
395 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 394 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
396 395
397 friend class AndroidVideoDecodeAcceleratorTest; 396 friend class AndroidVideoDecodeAcceleratorTest;
398 }; 397 };
399 398
400 } // namespace media 399 } // namespace media
401 400
402 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 401 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698