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 #if SK_SUPPORT_GPU | 8 #if SK_SUPPORT_GPU |
9 | 9 |
10 #include "GrContext.h" | 10 #include "GrContext.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 GrContext* grContext = factory->get(glType); | 50 GrContext* grContext = factory->get(glType); |
51 if (NULL == grContext) { | 51 if (NULL == grContext) { |
52 continue; | 52 continue; |
53 } | 53 } |
54 static const int sampleCounts[] = { 0, 4, 16 }; | 54 static const int sampleCounts[] = { 0, 4, 16 }; |
55 | 55 |
56 for (size_t i = 0; i < SK_ARRAY_COUNT(sampleCounts); ++i) { | 56 for (size_t i = 0; i < SK_ARRAY_COUNT(sampleCounts); ++i) { |
57 SkImageInfo info = SkImageInfo::MakeN32Premul(255, 255); | 57 SkImageInfo info = SkImageInfo::MakeN32Premul(255, 255); |
58 | 58 |
59 SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(grContext
, info, sampleCounts[i])); | 59 SkAutoTUnref<SkSurface> surface(SkSurface::NewRenderTarget(grContext
, info, |
| 60 sampleCou
nts[i], NULL)); |
60 test_drawPathEmpty(reporter, surface->getCanvas()); | 61 test_drawPathEmpty(reporter, surface->getCanvas()); |
61 } | 62 } |
62 } | 63 } |
63 } | 64 } |
64 | 65 |
65 #endif | 66 #endif |
OLD | NEW |