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

Unified Diff: src/core/SkStream.cpp

Issue 1413973002: Modifications to get 'blaze build -c opt //third_party/skia/HEAD/...' to work. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.public ('k') | src/core/SkTaskGroup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStream.cpp
diff --git a/src/core/SkStream.cpp b/src/core/SkStream.cpp
index b834513b4f638477c803d5083e1ac4d441f6f9c7..20e2ae965285acc1d674a6035b7f79d4ff3c5946 100644
--- a/src/core/SkStream.cpp
+++ b/src/core/SkStream.cpp
@@ -892,7 +892,12 @@ size_t SkCopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream) {
SkDynamicMemoryWStream tempStream;
// Arbitrary buffer size.
+#if defined(GOOGLE3)
+ // Stack frame size is limited in GOOGLE3.
+ const size_t bufferSize = 8 * 1024; // 8KB
+#else
const size_t bufferSize = 256 * 1024; // 256KB
+#endif
char buffer[bufferSize];
SkDEBUGCODE(size_t debugLength = 0;)
do {
« no previous file with comments | « BUILD.public ('k') | src/core/SkTaskGroup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698