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

Unified Diff: mojo/skia/ganesh_framebuffer_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_framebuffer_surface.h
diff --git a/mojo/skia/ganesh_framebuffer_surface.h b/mojo/skia/ganesh_framebuffer_surface.h
index 6925b037203bec0017390b2f3fb91b60d756e87c..5e14c3ddf0155c683e240b4519029617d170a00c 100644
--- a/mojo/skia/ganesh_framebuffer_surface.h
+++ b/mojo/skia/ganesh_framebuffer_surface.h
@@ -5,14 +5,14 @@
#ifndef MOJO_SKIA_GANESH_FRAMEBUFFER_SURFACE_H_
#define MOJO_SKIA_GANESH_FRAMEBUFFER_SURFACE_H_
-#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 {
+namespace skia {
+
+class GaneshContext;
// This class represents an SkSurface backed by a GL framebuffer, which is
// appropriate for use with Ganesh. This is useful for rendering Skia
@@ -28,11 +28,12 @@ class GaneshFramebufferSurface {
SkCanvas* canvas() const { return surface_->getCanvas(); }
private:
- skia::RefPtr<SkSurface> surface_;
+ ::skia::RefPtr<SkSurface> surface_;
DISALLOW_COPY_AND_ASSIGN(GaneshFramebufferSurface);
};
+} // namespace skia
} // namespace mojo
#endif // MOJO_SKIA_GANESH_FRAMEBUFFER_SURFACE_H_

Powered by Google App Engine
This is Rietveld 408576698