OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 // This test only works with the GPU backend. | 8 // This test only works with the GPU backend. |
10 | 9 |
11 #include "gm.h" | 10 #include "gm.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 texture->writePixels(S, (i ? 0 : S), S, S, | 109 texture->writePixels(S, (i ? 0 : S), S, S, |
111 texture->config(), gTextureData.get(), | 110 texture->config(), gTextureData.get(), |
112 4 * stride); | 111 4 * stride); |
113 drawContext->drawRect(clip, paint, vm, SkRect::MakeWH(2*S, 2*S))
; | 112 drawContext->drawRect(clip, paint, vm, SkRect::MakeWH(2*S, 2*S))
; |
114 } | 113 } |
115 } else { | 114 } else { |
116 skiagm::GM::DrawGpuOnlyMessage(canvas); | 115 skiagm::GM::DrawGpuOnlyMessage(canvas); |
117 } | 116 } |
118 } | 117 } |
119 #endif | 118 #endif |
OLD | NEW |