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

Unified Diff: pdf/document_loader.h

Issue 2525903002: [PDF Plugin] Increase read buffer size (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: pdf/document_loader.h
diff --git a/pdf/document_loader.h b/pdf/document_loader.h
index c217fa6f3bcfd270696311fd365386c3811cbdd0..54bce410955b868e31c5afa509676bf62f8dc8b0 100644
--- a/pdf/document_loader.h
+++ b/pdf/document_loader.h
@@ -108,7 +108,9 @@ class DocumentLoader {
DataStream chunk_stream_;
bool partial_loading_enabled_ = true;
bool is_partial_loader_active_ = false;
- char buffer_[DataStream::kChunkSize];
+
+ static constexpr uint32_t kReadBufferSize = 256 * 1024;
+ char buffer_[kReadBufferSize];
Chunk chunk_;
RangeSet pending_requests_;
« 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