Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: tests/DeferredCanvasTest.cpp

Issue 270283003: Revert of Split CPU and GPU DeferredCanvas tests (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 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 "../src/image/SkImagePriv.h" 8 #include "../src/image/SkImagePriv.h"
9 #include "../src/image/SkSurface_Base.h" 9 #include "../src/image/SkSurface_Base.h"
10 #include "SkBitmap.h" 10 #include "SkBitmap.h"
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 SkPaint paint; 809 SkPaint paint;
810 // After spawning a compatible canvas: 810 // After spawning a compatible canvas:
811 // 1) Verify that secondary canvas is usable and does not report to the noti fication client. 811 // 1) Verify that secondary canvas is usable and does not report to the noti fication client.
812 surface->getCanvas()->drawRect(rect, paint); 812 surface->getCanvas()->drawRect(rect, paint);
813 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 0); 813 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 0);
814 // 2) Verify that original canvas is usable and still reports to the notific ation client. 814 // 2) Verify that original canvas is usable and still reports to the notific ation client.
815 canvas->drawRect(rect, paint); 815 canvas->drawRect(rect, paint);
816 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 1); 816 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 1);
817 } 817 }
818 818
819 DEF_TEST(DeferredCanvas_CPU, reporter) { 819 DEF_GPUTEST(DeferredCanvas, reporter, factory) {
820 TestDeferredCanvasBitmapAccess(reporter); 820 TestDeferredCanvasBitmapAccess(reporter);
821 TestDeferredCanvasFlush(reporter); 821 TestDeferredCanvasFlush(reporter);
822 TestDeferredCanvasSilentFlush(reporter); 822 TestDeferredCanvasSilentFlush(reporter);
823 TestDeferredCanvasFreshFrame(reporter); 823 TestDeferredCanvasFreshFrame(reporter);
824 TestDeferredCanvasMemoryLimit(reporter); 824 TestDeferredCanvasMemoryLimit(reporter);
825 TestDeferredCanvasBitmapCaching(reporter); 825 TestDeferredCanvasBitmapCaching(reporter);
826 TestDeferredCanvasSkip(reporter); 826 TestDeferredCanvasSkip(reporter);
827 TestDeferredCanvasBitmapShaderNoLeak(reporter); 827 TestDeferredCanvasBitmapShaderNoLeak(reporter);
828 TestDeferredCanvasBitmapSizeThreshold(reporter); 828 TestDeferredCanvasBitmapSizeThreshold(reporter);
829 TestDeferredCanvasCreateCompatibleDevice(reporter); 829 TestDeferredCanvasCreateCompatibleDevice(reporter);
830 TestDeferredCanvasWritePixelsToSurface(reporter); 830 TestDeferredCanvasWritePixelsToSurface(reporter);
831 TestDeferredCanvasSurface(reporter, NULL); 831 TestDeferredCanvasSurface(reporter, NULL);
832 TestDeferredCanvasSetSurface(reporter, NULL); 832 TestDeferredCanvasSetSurface(reporter, NULL);
833 if (NULL != factory) {
834 TestDeferredCanvasSurface(reporter, factory);
835 TestDeferredCanvasSetSurface(reporter, factory);
836 }
833 } 837 }
834
835 DEF_GPUTEST(DeferredCanvas_GPU, reporter, factory) {
836 SkASSERT(factory != NULL);
837 TestDeferredCanvasSurface(reporter, factory);
838 TestDeferredCanvasSetSurface(reporter, factory);
839 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698