Commit f46c2bda authored by achaulk@chromium.org's avatar achaulk@chromium.org

Add GLSurfaceOzone's implementation of ScheduleOverlayPlane

BUG=

Review URL: https://codereview.chromium.org/476303003

Cr-Commit-Position: refs/heads/master@{#290117}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290117 0039d316-1c4b-4281-b951-d872f2087c98
parent eeeb07b9
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "base/memory/ref_counted.h" #include "base/memory/ref_counted.h"
#include "ui/gfx/native_widget_types.h" #include "ui/gfx/native_widget_types.h"
#include "ui/gl/gl_context.h" #include "ui/gl/gl_context.h"
#include "ui/gl/gl_image.h"
#include "ui/gl/gl_implementation.h" #include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface_egl.h" #include "ui/gl/gl_surface_egl.h"
#include "ui/gl/gl_surface_osmesa.h" #include "ui/gl/gl_surface_osmesa.h"
...@@ -44,6 +45,14 @@ class GL_EXPORT GLSurfaceOzoneEGL : public NativeViewGLSurfaceEGL { ...@@ -44,6 +45,14 @@ class GL_EXPORT GLSurfaceOzoneEGL : public NativeViewGLSurfaceEGL {
return ozone_surface_->OnSwapBuffers(); return ozone_surface_->OnSwapBuffers();
} }
virtual bool ScheduleOverlayPlane(int z_order,
OverlayTransform transform,
GLImage* image,
const Rect& bounds_rect,
const RectF& crop_rect) OVERRIDE {
return image->ScheduleOverlayPlane(
widget_, z_order, transform, bounds_rect, crop_rect);
}
private: private:
virtual ~GLSurfaceOzoneEGL() { virtual ~GLSurfaceOzoneEGL() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment