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

Unified Diff: tests/ClipCacheTest.cpp

Issue 894693003: Add refcnting to SkClipStack on SkCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | tests/GLProgramsTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ClipCacheTest.cpp
diff --git a/tests/ClipCacheTest.cpp b/tests/ClipCacheTest.cpp
index 2b29131ca562015bd2c285086111a4ef4b228859..1df10538b5e6b509e8bfb3efc01baf5cae5964c8 100644
--- a/tests/ClipCacheTest.cpp
+++ b/tests/ClipCacheTest.cpp
@@ -86,7 +86,7 @@ static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) {
// wrap the SkClipStack in a GrClipData
GrClipData clipData;
- clipData.fClipStack = &stack;
+ clipData.fClipStack.reset(SkRef(&stack));
SkIRect devGrClipDataBound;
clipData.getConservativeBounds(texture,
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | tests/GLProgramsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698