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

Unified Diff: services/gfx/compositor/render/render_frame.h

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/gfx/compositor/graph/transform_pair.h ('k') | services/gfx/compositor/render/render_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gfx/compositor/render/render_frame.h
diff --git a/services/gfx/compositor/render/render_frame.h b/services/gfx/compositor/render/render_frame.h
index f468fb949b131566c36f926a2536b427666d9753..77f7a6bf73d824aaa84636fdeb2dafec0d222920 100644
--- a/services/gfx/compositor/render/render_frame.h
+++ b/services/gfx/compositor/render/render_frame.h
@@ -8,8 +8,8 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "mojo/services/gfx/composition/interfaces/scheduling.mojom.h"
-#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkRect.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
class SkCanvas;
class SkPicture;
@@ -46,7 +46,7 @@ class RenderFrame : public base::RefCountedThreadSafe<RenderFrame> {
// Creates render frame backed by a picture.
RenderFrame(const Metadata& metadata,
const SkIRect& viewport,
- const skia::RefPtr<SkPicture>& picture);
+ const sk_sp<SkPicture>& picture);
// Gets metadata about the frame.
const Metadata& metadata() const { return metadata_; }
@@ -55,7 +55,7 @@ class RenderFrame : public base::RefCountedThreadSafe<RenderFrame> {
const SkIRect& viewport() const { return viewport_; }
// Gets the underlying picture to rasterize, or null if the frame is empty.
- const skia::RefPtr<SkPicture>& picture() const { return picture_; }
+ const sk_sp<SkPicture>& picture() const { return picture_; }
// Draws the contents of the frame to a canvas.
void Draw(SkCanvas* canvas) const;
@@ -68,7 +68,7 @@ class RenderFrame : public base::RefCountedThreadSafe<RenderFrame> {
Metadata metadata_;
SkIRect viewport_;
- skia::RefPtr<SkPicture> picture_;
+ sk_sp<SkPicture> picture_;
DISALLOW_COPY_AND_ASSIGN(RenderFrame);
};
« no previous file with comments | « services/gfx/compositor/graph/transform_pair.h ('k') | services/gfx/compositor/render/render_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698