OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 // Include here to ensure SK_SUPPORT_GPU is set correctly before it is examined. | 8 // Include here to ensure SK_SUPPORT_GPU is set correctly before it is examined. |
9 #include "SkTypes.h" | 9 #include "SkTypes.h" |
10 | 10 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 smallMSAART0->asRenderTarget()->renderTargetPriv().getSt
encilAttachment() != | 174 smallMSAART0->asRenderTarget()->renderTargetPriv().getSt
encilAttachment() != |
175 smallMSAART1->asRenderTarget()->renderTargetPriv().getSt
encilAttachment()); | 175 smallMSAART1->asRenderTarget()->renderTargetPriv().getSt
encilAttachment()); |
176 } | 176 } |
177 } | 177 } |
178 } | 178 } |
179 | 179 |
180 static void test_wrapped_resources(skiatest::Reporter* reporter, GrContext* cont
ext) { | 180 static void test_wrapped_resources(skiatest::Reporter* reporter, GrContext* cont
ext) { |
181 GrTestTarget tt; | 181 GrTestTarget tt; |
182 context->getTestTarget(&tt); | 182 context->getTestTarget(&tt); |
183 | 183 |
184 const GrGLInterface* gl = tt.glContext()->interface(); | 184 const GrGLInterface* gl = tt.glInterface(); |
185 if (!gl) { | 185 if (!gl) { |
186 return; | 186 return; |
187 } | 187 } |
188 | 188 |
189 GrGLuint texIDs[2]; | 189 GrGLuint texIDs[2]; |
190 static const int kW = 100; | 190 static const int kW = 100; |
191 static const int kH = 100; | 191 static const int kH = 100; |
192 GR_GL_CALL(gl, GenTextures(2, texIDs)); | 192 GR_GL_CALL(gl, GenTextures(2, texIDs)); |
193 GR_GL_CALL(gl, ActiveTexture(GR_GL_TEXTURE0)); | 193 GR_GL_CALL(gl, ActiveTexture(GR_GL_TEXTURE0)); |
194 GR_GL_CALL(gl, PixelStorei(GR_GL_UNPACK_ALIGNMENT, 1)); | 194 GR_GL_CALL(gl, PixelStorei(GR_GL_UNPACK_ALIGNMENT, 1)); |
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1270 test_scratch_key_consistency(reporter); | 1270 test_scratch_key_consistency(reporter); |
1271 test_purge_invalidated(reporter); | 1271 test_purge_invalidated(reporter); |
1272 test_cache_chained_purge(reporter); | 1272 test_cache_chained_purge(reporter); |
1273 test_resource_size_changed(reporter); | 1273 test_resource_size_changed(reporter); |
1274 test_timestamp_wrap(reporter); | 1274 test_timestamp_wrap(reporter); |
1275 test_flush(reporter); | 1275 test_flush(reporter); |
1276 test_large_resource_count(reporter); | 1276 test_large_resource_count(reporter); |
1277 } | 1277 } |
1278 | 1278 |
1279 #endif | 1279 #endif |
OLD | NEW |