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" | |
9 #include "SkCanvas.h" | 8 #include "SkCanvas.h" |
10 #include "SkColorPriv.h" | 9 #include "SkColorPriv.h" |
11 #include "SkMathPriv.h" | 10 #include "SkMathPriv.h" |
12 #include "SkRegion.h" | 11 #include "SkRegion.h" |
13 #include "SkSurface.h" | 12 #include "SkSurface.h" |
14 #include "Test.h" | 13 #include "Test.h" |
15 #include "sk_tool_utils.h" | 14 #include "sk_tool_utils.h" |
16 | 15 |
17 #if SK_SUPPORT_GPU | 16 #if SK_SUPPORT_GPU |
18 #include "GrContextFactory.h" | 17 #include "GrContextFactory.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 SkIRect writeRect = SkIRect::MakeXYWH(rect.fLeft, rect.f
Top, | 469 SkIRect writeRect = SkIRect::MakeXYWH(rect.fLeft, rect.f
Top, |
471 bmp.width(), bmp.h
eight()); | 470 bmp.width(), bmp.h
eight()); |
472 bool intersects = SkIRect::Intersects(canvasRect, writeR
ect) ; | 471 bool intersects = SkIRect::Intersects(canvasRect, writeR
ect) ; |
473 REPORTER_ASSERT(reporter, intersects == (idBefore != idA
fter)); | 472 REPORTER_ASSERT(reporter, intersects == (idBefore != idA
fter)); |
474 } | 473 } |
475 } | 474 } |
476 } | 475 } |
477 } | 476 } |
478 } | 477 } |
479 } | 478 } |
OLD | NEW |