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

Unified Diff: ui/ozone/demo/surfaceless_gl_renderer.h

Issue 1258713002: ozone: unify GpuMemoryBufferFactoryOzoneNativePixmap in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linux_chromium_gn_dgb build Created 5 years, 5 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 | « ui/ozone/demo/ozone_demos.gyp ('k') | ui/ozone/demo/surfaceless_gl_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/surfaceless_gl_renderer.h
diff --git a/ui/ozone/demo/surfaceless_gl_renderer.h b/ui/ozone/demo/surfaceless_gl_renderer.h
index b073c64530251eafe55b9e151fa4788ab02ef082..1563a856124a1361b9e4a54b5c7aaeb556596bdd 100644
--- a/ui/ozone/demo/surfaceless_gl_renderer.h
+++ b/ui/ozone/demo/surfaceless_gl_renderer.h
@@ -13,14 +13,9 @@ class GLImage;
namespace ui {
-class GpuMemoryBufferFactoryOzoneNativePixmap;
-
class SurfacelessGlRenderer : public GlRenderer {
public:
- SurfacelessGlRenderer(
- gfx::AcceleratedWidget widget,
- const gfx::Size& size,
- GpuMemoryBufferFactoryOzoneNativePixmap* buffer_factory);
+ SurfacelessGlRenderer(gfx::AcceleratedWidget widget, const gfx::Size& size);
~SurfacelessGlRenderer() override;
// Renderer:
@@ -36,9 +31,7 @@ class SurfacelessGlRenderer : public GlRenderer {
BufferWrapper();
~BufferWrapper();
- bool Initialize(GpuMemoryBufferFactoryOzoneNativePixmap* buffer_factory,
- gfx::AcceleratedWidget widget,
- const gfx::Size& size);
+ bool Initialize(gfx::AcceleratedWidget widget, const gfx::Size& size);
void BindFramebuffer();
void SchedulePlane();
@@ -51,8 +44,6 @@ class SurfacelessGlRenderer : public GlRenderer {
unsigned int gl_tex_ = 0;
};
- GpuMemoryBufferFactoryOzoneNativePixmap* buffer_factory_;
-
BufferWrapper buffers_[2];
int back_buffer_ = 0;
« no previous file with comments | « ui/ozone/demo/ozone_demos.gyp ('k') | ui/ozone/demo/surfaceless_gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698