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

Unified Diff: mojo/skia/ganesh_image_factory.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 | « mojo/skia/ganesh_framebuffer_surface.cc ('k') | mojo/skia/ganesh_image_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/skia/ganesh_image_factory.h
diff --git a/mojo/skia/ganesh_image_factory.h b/mojo/skia/ganesh_image_factory.h
index ddd3630b7ded158d9e5756d8913b5a291917a0bf..85709ef7f9708e7676ccd3ddca46d55a801bf574 100644
--- a/mojo/skia/ganesh_image_factory.h
+++ b/mojo/skia/ganesh_image_factory.h
@@ -10,8 +10,8 @@
#include "base/callback.h"
#include "mojo/skia/ganesh_context.h"
-#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkImageGenerator.h"
+#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/include/gpu/GrTypes.h"
class SkImage;
@@ -22,13 +22,12 @@ namespace skia {
// Creates an SkImage from a GL texture.
// The underlying texture must be kept alive for as long as the SkImage exists.
// Invokes |release_callback| when the SkImage is deleted.
-::skia::RefPtr<SkImage> CreateImageFromTexture(
- const GaneshContext::Scope& scope,
- uint32_t texture_id,
- uint32_t width,
- uint32_t height,
- GrSurfaceOrigin origin,
- const base::Closure& release_callback);
+sk_sp<SkImage> CreateImageFromTexture(const GaneshContext::Scope& scope,
+ uint32_t texture_id,
+ uint32_t width,
+ uint32_t height,
+ GrSurfaceOrigin origin,
+ const base::Closure& release_callback);
// Generates backing content for SkImages from a texture mailbox.
// If |sync_point| is non-zero, inserts a sync point into the command stream
« no previous file with comments | « mojo/skia/ganesh_framebuffer_surface.cc ('k') | mojo/skia/ganesh_image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698