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

Unified Diff: mojo/skia/ganesh_texture_surface.h

Issue 1534033002: Improve Ganesh helpers. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-8
Patch Set: fix includes Created 5 years 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
Index: mojo/skia/ganesh_texture_surface.h
diff --git a/mojo/skia/ganesh_texture_surface.h b/mojo/skia/ganesh_texture_surface.h
index cd3b05dc74f5458efa910f0cb84e73eb4cb5b872..296a8347f080a4c1b54f687e9390fda0fdd12c0e 100644
--- a/mojo/skia/ganesh_texture_surface.h
+++ b/mojo/skia/ganesh_texture_surface.h
@@ -7,12 +7,15 @@
#include <memory>
-#include "mojo/gpu/gl_texture.h"
-#include "mojo/skia/ganesh_context.h"
+#include "base/macros.h"
#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkSurface.h"
namespace mojo {
+class GLTexture;
+
+namespace skia {
+class GaneshContext;
// This class represents an SkSurface backed by a GL texture, which is
// appropriate for use with Ganesh. This is useful for rendering Skia
@@ -32,11 +35,12 @@ class GaneshTextureSurface {
private:
std::unique_ptr<GLTexture> texture_;
- skia::RefPtr<SkSurface> surface_;
+ ::skia::RefPtr<SkSurface> surface_;
DISALLOW_COPY_AND_ASSIGN(GaneshTextureSurface);
};
+} // namespace skia
} // namespace mojo
#endif // MOJO_SKIA_GANESH_TEXTURE_SURFACE_H_

Powered by Google App Engine
This is Rietveld 408576698