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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions 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
« no previous file with comments | « ui/gl/gl_surface_egl.h ('k') | ui/gl/gl_surface_overlay.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 976052a2f4602ad05430fb227670fdda2897bd30..c64e0b8a080b6d9872d941c2400d20199d12b72c 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -785,17 +785,18 @@ VSyncProvider* NativeViewGLSurfaceEGL::GetVSyncProvider() {
return vsync_provider_.get();
}
-bool NativeViewGLSurfaceEGL::ScheduleOverlayPlane(int z_order,
- OverlayTransform transform,
- gl::GLImage* image,
- const Rect& bounds_rect,
- const RectF& crop_rect) {
+bool NativeViewGLSurfaceEGL::ScheduleOverlayPlane(
+ int z_order, OverlayTransform transform,
+ gfx::BufferFormat storage_format, gl::GLImage* image,
+ const Rect& bounds_rect, const RectF& crop_rect,
+ bool handle_scaling) {
#if !defined(OS_ANDROID)
NOTIMPLEMENTED();
return false;
#else
pending_overlays_.push_back(
- GLSurfaceOverlay(z_order, transform, image, bounds_rect, crop_rect));
+ GLSurfaceOverlay(z_order, transform, storage_format, image, bounds_rect,
+ crop_rect, handle_scaling));
return true;
#endif
}
« no previous file with comments | « ui/gl/gl_surface_egl.h ('k') | ui/gl/gl_surface_overlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698