OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 "SkBitmapDevice.h" | 8 #include "SkBitmapDevice.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
11 #include "SkMathPriv.h" | 11 #include "SkMathPriv.h" |
12 #include "SkRegion.h" | 12 #include "SkRegion.h" |
13 #include "Test.h" | 13 #include "Test.h" |
14 | 14 |
15 #if SK_SUPPORT_GPU | 15 #if SK_SUPPORT_GPU |
| 16 #include "GrContextFactory.h" |
16 #include "SkGpuDevice.h" | 17 #include "SkGpuDevice.h" |
17 #include "GrContextFactory.h" | |
18 #endif | 18 #endif |
19 | 19 |
20 static const int DEV_W = 100, DEV_H = 100; | 20 static const int DEV_W = 100, DEV_H = 100; |
21 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); | 21 static const SkIRect DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H); |
22 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1, | 22 static const SkRect DEV_RECT_S = SkRect::MakeWH(DEV_W * SK_Scalar1, |
23 DEV_H * SK_Scalar1); | 23 DEV_H * SK_Scalar1); |
24 | 24 |
25 static SkPMColor getCanvasColor(int x, int y) { | 25 static SkPMColor getCanvasColor(int x, int y) { |
26 SkASSERT(x >= 0 && x < DEV_W); | 26 SkASSERT(x >= 0 && x < DEV_W); |
27 SkASSERT(y >= 0 && y < DEV_H); | 27 SkASSERT(y >= 0 && y < DEV_H); |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 clippedRect.fTop, true, false, | 400 clippedRect.fTop, true, false, |
401 SkCanvas::kNative_Premul_Config8888); | 401 SkCanvas::kNative_Premul_Config8888); |
402 } else { | 402 } else { |
403 REPORTER_ASSERT(reporter, !success); | 403 REPORTER_ASSERT(reporter, !success); |
404 } | 404 } |
405 } | 405 } |
406 } | 406 } |
407 } | 407 } |
408 } | 408 } |
409 } | 409 } |
OLD | NEW |