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

Unified Diff: webrtc/common_video/include/i420_buffer_pool.h

Issue 2473383002: Changed I420BufferPool members to be const. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_video/include/i420_buffer_pool.h
diff --git a/webrtc/common_video/include/i420_buffer_pool.h b/webrtc/common_video/include/i420_buffer_pool.h
index 53950945c2b1850dceeb3b85f528cd72cbb8db79..f0562634aeab43f225b8b3ecebbea0f2f5254644 100644
--- a/webrtc/common_video/include/i420_buffer_pool.h
+++ b/webrtc/common_video/include/i420_buffer_pool.h
@@ -29,7 +29,7 @@ namespace webrtc {
class I420BufferPool {
public:
I420BufferPool()
- : I420BufferPool(false, std::numeric_limits<size_t>::max()) {}
+ : I420BufferPool(false) {}
explicit I420BufferPool(bool zero_initialize)
: I420BufferPool(zero_initialize, std::numeric_limits<size_t>::max()) {}
I420BufferPool(bool zero_initialze, size_t max_number_of_buffers);
@@ -54,9 +54,9 @@ class I420BufferPool {
// FFmpeg according to http://crbug.com/390941, which only requires it for the
// initial allocation (as shown by FFmpeg's own buffer allocation code). It
// has to do with "Use-of-uninitialized-value" on "Linux_msan_chrome".
- bool zero_initialize_;
+ const bool zero_initialize_;
// Max number of buffers this pool can have pending.
- size_t max_number_of_buffers_;
+ const size_t max_number_of_buffers_;
};
} // namespace webrtc
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698