diff options
author | 2014-09-17 07:50:47 -0700 | |
---|---|---|
committer | 2014-09-17 07:50:47 -0700 | |
commit | 4aa6dfc0b77af9ac298bb9d48991b72a2fec00b2 (patch) | |
tree | 17804f9ad13b494638eebaa7b42e2db44d02136c /tests/GpuLayerCacheTest.cpp | |
parent | b374d6a62c0259387d90cad74753d8bad9ee1bea (diff) |
Separate replacement creation from layer discovery
This is a simple refactoring that sets the stage for eliminating GrReplacements::ReplacementInfo and splitting up EXPERIMENTAL_drawPicture to support multi picture draw.
R=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/559603004
Diffstat (limited to 'tests/GpuLayerCacheTest.cpp')
-rw-r--r-- | tests/GpuLayerCacheTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/GpuLayerCacheTest.cpp b/tests/GpuLayerCacheTest.cpp index 66117e6a36..c9b88f5dfe 100644 --- a/tests/GpuLayerCacheTest.cpp +++ b/tests/GpuLayerCacheTest.cpp @@ -34,7 +34,8 @@ static void create_layers(skiatest::Reporter* reporter, GrCachedLayer* layer = cache->findLayerOrCreate(picture.uniqueID(), idOffset+i+1, idOffset+i+2, SkIPoint::Make(0, 0), - SkMatrix::I()); + SkMatrix::I(), + NULL); REPORTER_ASSERT(reporter, layer); GrCachedLayer* temp = cache->findLayer(picture.uniqueID(), idOffset+i+1, idOffset+i+2, SkIPoint::Make(0, 0), SkMatrix::I()); @@ -47,6 +48,7 @@ static void create_layers(skiatest::Reporter* reporter, REPORTER_ASSERT(reporter, layer->stop() == idOffset + i + 2); REPORTER_ASSERT(reporter, layer->ctm() == SkMatrix::I()); REPORTER_ASSERT(reporter, NULL == layer->texture()); + REPORTER_ASSERT(reporter, NULL == layer->paint()); REPORTER_ASSERT(reporter, !layer->isAtlased()); } |