| 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 "SkCanvas.h" | 8 #include "SkCanvas.h" |
| 9 #include "SkData.h" | 9 #include "SkData.h" |
| 10 #include "SkDevice.h" | 10 #include "SkDevice.h" |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 | 698 |
| 699 EXPECT_COPY_ON_WRITE(clear(testColor)) | 699 EXPECT_COPY_ON_WRITE(clear(testColor)) |
| 700 EXPECT_COPY_ON_WRITE(drawPaint(testPaint)) | 700 EXPECT_COPY_ON_WRITE(drawPaint(testPaint)) |
| 701 EXPECT_COPY_ON_WRITE(drawPoints(SkCanvas::kPoints_PointMode, testPointCount,
testPoints, \ | 701 EXPECT_COPY_ON_WRITE(drawPoints(SkCanvas::kPoints_PointMode, testPointCount,
testPoints, \ |
| 702 testPaint)) | 702 testPaint)) |
| 703 EXPECT_COPY_ON_WRITE(drawOval(testRect, testPaint)) | 703 EXPECT_COPY_ON_WRITE(drawOval(testRect, testPaint)) |
| 704 EXPECT_COPY_ON_WRITE(drawRect(testRect, testPaint)) | 704 EXPECT_COPY_ON_WRITE(drawRect(testRect, testPaint)) |
| 705 EXPECT_COPY_ON_WRITE(drawRRect(testRRect, testPaint)) | 705 EXPECT_COPY_ON_WRITE(drawRRect(testRRect, testPaint)) |
| 706 EXPECT_COPY_ON_WRITE(drawPath(testPath, testPaint)) | 706 EXPECT_COPY_ON_WRITE(drawPath(testPath, testPaint)) |
| 707 EXPECT_COPY_ON_WRITE(drawBitmap(testBitmap, 0, 0)) | 707 EXPECT_COPY_ON_WRITE(drawBitmap(testBitmap, 0, 0)) |
| 708 EXPECT_COPY_ON_WRITE(drawBitmapRect(testBitmap, testRect)) | 708 EXPECT_COPY_ON_WRITE(drawBitmapRect(testBitmap, testRect, nullptr)) |
| 709 EXPECT_COPY_ON_WRITE(drawBitmapNine(testBitmap, testIRect, testRect, NULL)) | 709 EXPECT_COPY_ON_WRITE(drawBitmapNine(testBitmap, testIRect, testRect, NULL)) |
| 710 EXPECT_COPY_ON_WRITE(drawSprite(testBitmap, 0, 0, NULL)) | 710 EXPECT_COPY_ON_WRITE(drawSprite(testBitmap, 0, 0, NULL)) |
| 711 EXPECT_COPY_ON_WRITE(drawText(testText.c_str(), testText.size(), 0, 1, testP
aint)) | 711 EXPECT_COPY_ON_WRITE(drawText(testText.c_str(), testText.size(), 0, 1, testP
aint)) |
| 712 EXPECT_COPY_ON_WRITE(drawPosText(testText.c_str(), testText.size(), testPoin
ts2, \ | 712 EXPECT_COPY_ON_WRITE(drawPosText(testText.c_str(), testText.size(), testPoin
ts2, \ |
| 713 testPaint)) | 713 testPaint)) |
| 714 EXPECT_COPY_ON_WRITE(drawTextOnPath(testText.c_str(), testText.size(), testP
ath, NULL, \ | 714 EXPECT_COPY_ON_WRITE(drawTextOnPath(testText.c_str(), testText.size(), testP
ath, NULL, \ |
| 715 testPaint)) | 715 testPaint)) |
| 716 | 716 |
| 717 const SkSurface::BackendHandleAccess accessModes[] = { | 717 const SkSurface::BackendHandleAccess accessModes[] = { |
| 718 SkSurface::kFlushRead_BackendHandleAccess, | 718 SkSurface::kFlushRead_BackendHandleAccess, |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 test_image_color(reporter, refImg, expected1); | 1022 test_image_color(reporter, refImg, expected1); |
| 1023 #endif | 1023 #endif |
| 1024 test_image_color(reporter, cpyImg, expected0); | 1024 test_image_color(reporter, cpyImg, expected0); |
| 1025 | 1025 |
| 1026 // Now exercise the release proc | 1026 // Now exercise the release proc |
| 1027 REPORTER_ASSERT(reporter, !releaseCtx.fIsReleased); | 1027 REPORTER_ASSERT(reporter, !releaseCtx.fIsReleased); |
| 1028 refImg.reset(NULL); // force a release of the image | 1028 refImg.reset(NULL); // force a release of the image |
| 1029 REPORTER_ASSERT(reporter, releaseCtx.fIsReleased); | 1029 REPORTER_ASSERT(reporter, releaseCtx.fIsReleased); |
| 1030 } | 1030 } |
| 1031 #endif | 1031 #endif |
| OLD | NEW |