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

Unified Diff: cc/output/software_renderer.h

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/output/renderer_pixeltest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/software_renderer.h
diff --git a/cc/output/software_renderer.h b/cc/output/software_renderer.h
index 359364fda662f7c6bc0e4438c5993e308497596a..e892b1c6070a65d8bd4d152953af9a1c80c98087 100644
--- a/cc/output/software_renderer.h
+++ b/cc/output/software_renderer.h
@@ -88,9 +88,9 @@ class CC_EXPORT SoftwareRenderer : public DirectRenderer {
void DrawUnsupportedQuad(const DrawingFrame* frame,
const DrawQuad* quad);
bool ShouldApplyBackgroundFilters(const RenderPassDrawQuad* quad) const;
- skia::RefPtr<SkImage> ApplyImageFilter(SkImageFilter* filter,
- const RenderPassDrawQuad* quad,
- const SkBitmap* to_filter) const;
+ sk_sp<SkImage> ApplyImageFilter(SkImageFilter* filter,
+ const RenderPassDrawQuad* quad,
+ const SkBitmap* to_filter) const;
gfx::Rect GetBackdropBoundingBoxForRenderPassQuad(
const DrawingFrame* frame,
const RenderPassDrawQuad* quad,
@@ -112,7 +112,7 @@ class CC_EXPORT SoftwareRenderer : public DirectRenderer {
SkPaint current_paint_;
std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware>
current_framebuffer_lock_;
- skia::RefPtr<SkCanvas> current_framebuffer_canvas_;
+ sk_sp<SkCanvas> current_framebuffer_canvas_;
DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
};
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/software_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698