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

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

Issue 2601003002: Android: Fix random crash in HW encode accelerator (Closed)
Patch Set: address comments Created 3 years, 12 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 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 MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
6 #define MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // A monotonically-growing value. 98 // A monotonically-growing value.
99 base::TimeDelta input_timestamp_; 99 base::TimeDelta input_timestamp_;
100 100
101 // Resolution of input stream. Set once in initialization and not allowed to 101 // Resolution of input stream. Set once in initialization and not allowed to
102 // change after. 102 // change after.
103 gfx::Size frame_size_; 103 gfx::Size frame_size_;
104 104
105 uint32_t last_set_bitrate_; // In bps. 105 uint32_t last_set_bitrate_; // In bps.
106 106
107 // True if there is encoder error.
108 bool error_occurred_;
109
107 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator); 110 DISALLOW_COPY_AND_ASSIGN(AndroidVideoEncodeAccelerator);
108 }; 111 };
109 112
110 } // namespace media 113 } // namespace media
111 114
112 #endif // MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_ 115 #endif // MEDIA_GPU_ANDROID_VIDEO_ENCODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/android_video_encode_accelerator.cc » ('j') | media/gpu/android_video_encode_accelerator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698