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

Unified Diff: cc/trees/damage_tracker_unittest.cc

Issue 1869753003: Replace many skia::RefPtr with sk_sp<> in cc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's nits Created 4 years, 8 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 | « cc/test/test_in_process_context_provider.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/damage_tracker_unittest.cc
diff --git a/cc/trees/damage_tracker_unittest.cc b/cc/trees/damage_tracker_unittest.cc
index 14d25fe7c8f22ba5dc55e32054ec9d443042aeeb..56d3daf30ff91cfc69f22d43d99b41c698d19ddd 100644
--- a/cc/trees/damage_tracker_unittest.cc
+++ b/cc/trees/damage_tracker_unittest.cc
@@ -561,10 +561,9 @@ TEST_F(DamageTrackerTest, VerifyDamageForImageFilter) {
// Allow us to set damage on child too.
child->SetDrawsContent(true);
- skia::RefPtr<SkImageFilter> filter = skia::AdoptRef(
- SkBlurImageFilter::Create(SkIntToScalar(2), SkIntToScalar(2)));
FilterOperations filters;
- filters.Append(FilterOperation::CreateReferenceFilter(filter));
+ filters.Append(FilterOperation::CreateReferenceFilter(
+ SkBlurImageFilter::Make(2, 2, nullptr)));
int outset_top, outset_right, outset_bottom, outset_left;
filters.GetOutsets(&outset_top, &outset_right, &outset_bottom, &outset_left);
« no previous file with comments | « cc/test/test_in_process_context_provider.h ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698