diff options
author | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-12 20:20:50 +0000 |
---|---|---|
committer | junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-12 20:20:50 +0000 |
commit | 5ee449af7448c202cfc6e9a359d8f996392885b2 (patch) | |
tree | be78a2e88692760e5052d214806857d732f28a9a /tests | |
parent | 547012dc05dd3af503624bb9c72b56e898bc4b64 (diff) |
Fixing viral copy/paste typo Shapshot -> Snapshot
Unreviewed
git-svn-id: http://skia.googlecode.com/svn/trunk@8667 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/DeferredCanvasTest.cpp | 6 | ||||
-rw-r--r-- | tests/SurfaceTest.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/DeferredCanvasTest.cpp b/tests/DeferredCanvasTest.cpp index 1e23457737..35eaf8c3c7 100644 --- a/tests/DeferredCanvasTest.cpp +++ b/tests/DeferredCanvasTest.cpp @@ -505,7 +505,7 @@ static void TestDeferredCanvasSurface(skiatest::Reporter* reporter, GrContextFac SkAutoTUnref<SkSurface> aur(surface); SkDeferredCanvas canvas(surface); - SkImage* image1 = canvas.newImageShapshot(); + SkImage* image1 = canvas.newImageSnapshot(); SkAutoTUnref<SkImage> aur_i1(image1); PixelPtr pixels1 = getSurfacePixelPtr(surface, useGpu); // The following clear would normally trigger a copy on write, but @@ -514,13 +514,13 @@ static void TestDeferredCanvasSurface(skiatest::Reporter* reporter, GrContextFac // Obtaining a snapshot directly from the surface (as opposed to the // SkDeferredCanvas) will not trigger a flush of deferred draw operations // and will therefore return the same image as the previous snapshot. - SkImage* image2 = surface->newImageShapshot(); + SkImage* image2 = surface->newImageSnapshot(); SkAutoTUnref<SkImage> aur_i2(image2); // Images identical because of deferral REPORTER_ASSERT(reporter, image1->uniqueID() == image2->uniqueID()); // Now we obtain a snpshot via the deferred canvas, which triggers a flush. // Because there is a pending clear, this will generate a different image. - SkImage* image3 = canvas.newImageShapshot(); + SkImage* image3 = canvas.newImageSnapshot(); SkAutoTUnref<SkImage> aur_i3(image3); REPORTER_ASSERT(reporter, image1->uniqueID() != image3->uniqueID()); // Verify that backing store is now a different buffer because of copy on diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp index 95c76cbbe1..5f2dca64c6 100644 --- a/tests/SurfaceTest.cpp +++ b/tests/SurfaceTest.cpp @@ -105,10 +105,10 @@ static void TestSurfaceCopyOnWrite(skiatest::Reporter* reporter, SurfaceType sur #define EXPECT_COPY_ON_WRITE(command) \ { \ - SkImage* imageBefore = surface->newImageShapshot(); \ + SkImage* imageBefore = surface->newImageSnapshot(); \ SkAutoTUnref<SkImage> aur_before(imageBefore); \ canvas-> command ; \ - SkImage* imageAfter = surface->newImageShapshot(); \ + SkImage* imageAfter = surface->newImageSnapshot(); \ SkAutoTUnref<SkImage> aur_after(imageAfter); \ REPORTER_ASSERT(reporter, imageBefore != imageAfter); \ } @@ -143,7 +143,7 @@ static void TestSurfaceWritableAfterSnapshotRelease(skiatest::Reporter* reporter SkAutoTUnref<SkSurface> aur_surface(surface); SkCanvas* canvas = surface->getCanvas(); canvas->clear(1); - surface->newImageShapshot()->unref(); // Create and destroy SkImage + surface->newImageSnapshot()->unref(); // Create and destroy SkImage canvas->clear(2); } |