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

Unified Diff: ui/gl/gl_surface_overlay.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_overlay.h ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_overlay.cc
diff --git a/ui/gl/gl_surface_overlay.cc b/ui/gl/gl_surface_overlay.cc
index e683c10fbd91da33368b1e37372f24d20bddc4b5..2e3cbb990a17d04d0e4461ee753bcfe1e9b7e500 100644
--- a/ui/gl/gl_surface_overlay.cc
+++ b/ui/gl/gl_surface_overlay.cc
@@ -14,20 +14,25 @@ namespace gfx {
GLSurfaceOverlay::GLSurfaceOverlay(int z_order,
OverlayTransform transform,
+ gfx::BufferFormat storage_format,
gl::GLImage* image,
const Rect& bounds_rect,
- const RectF& crop_rect)
+ const RectF& crop_rect,
+ bool handle_scaling)
: z_order_(z_order),
transform_(transform),
+ storage_format_(storage_format),
image_(image),
bounds_rect_(bounds_rect),
- crop_rect_(crop_rect) {}
+ crop_rect_(crop_rect),
+ handle_scaling_(handle_scaling) {}
GLSurfaceOverlay::~GLSurfaceOverlay() {}
bool GLSurfaceOverlay::ScheduleOverlayPlane(AcceleratedWidget widget) const {
return image_->ScheduleOverlayPlane(widget, z_order_, transform_,
- bounds_rect_, crop_rect_);
+ storage_format_, bounds_rect_,
+ crop_rect_, handle_scaling_);
}
} // namespace gfx
« no previous file with comments | « ui/gl/gl_surface_overlay.h ('k') | ui/gl/gl_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698