aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2015-10-19 13:55:55 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-19 13:55:55 -0700
commit7d974f5e4f8ded8834b58f560ac6e03aed370310 (patch)
tree7b35daa322d3fe65734f26126824e2173e59bdfd /tests
parent423f6461e98ba28730d05e5894804a4970a09bde (diff)
Modifications to get 'blaze build -c opt //third_party/skia/HEAD/...' to work.
Diffstat (limited to 'tests')
-rw-r--r--tests/MatrixTest.cpp6
-rw-r--r--tests/SRGBReadWritePixelsTest.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/MatrixTest.cpp b/tests/MatrixTest.cpp
index 57e79576b0..edeb649a66 100644
--- a/tests/MatrixTest.cpp
+++ b/tests/MatrixTest.cpp
@@ -664,8 +664,14 @@ static void test_matrix_homogeneous(skiatest::Reporter* reporter) {
const float kRotation1 = -50.f;
const float kScale0 = 5000.f;
+#if defined(GOOGLE3)
+ // Stack frame size is limited in GOOGLE3.
+ const int kTripleCount = 100;
+ const int kMatrixCount = 100;
+#else
const int kTripleCount = 1000;
const int kMatrixCount = 1000;
+#endif
SkRandom rand;
SkScalar randTriples[3*kTripleCount];
diff --git a/tests/SRGBReadWritePixelsTest.cpp b/tests/SRGBReadWritePixelsTest.cpp
index f0e747a400..7e0b721246 100644
--- a/tests/SRGBReadWritePixelsTest.cpp
+++ b/tests/SRGBReadWritePixelsTest.cpp
@@ -140,8 +140,14 @@ void read_and_check_pixels(skiatest::Reporter* reporter, GrTexture* texture, uin
// TODO: Add tests for copySurface between srgb/linear textures. Add tests for unpremul/premul
// conversion during read/write along with srgb/linear conversions.
DEF_GPUTEST(SRGBReadWritePixels, reporter, factory) {
+#if defined(GOOGLE3)
+ // Stack frame size is limited in GOOGLE3.
+ static const int kW = 63;
+ static const int kH = 63;
+#else
static const int kW = 255;
static const int kH = 255;
+#endif
uint32_t origData[kW * kH];
for (int j = 0; j < kH; ++j) {
for (int i = 0; i < kW; ++i) {