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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gl/gl_surface_overlay.h" 5 #include "ui/gl/gl_surface_overlay.h"
6 6
7 #include "ui/gfx/geometry/rect.h" 7 #include "ui/gfx/geometry/rect.h"
8 #include "ui/gfx/geometry/rect_f.h" 8 #include "ui/gfx/geometry/rect_f.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/gfx/overlay_transform.h" 10 #include "ui/gfx/overlay_transform.h"
11 #include "ui/gl/gl_image.h" 11 #include "ui/gl/gl_image.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 GLSurfaceOverlay::GLSurfaceOverlay(int z_order, 15 GLSurfaceOverlay::GLSurfaceOverlay(int z_order,
16 OverlayTransform transform, 16 OverlayTransform transform,
17 gfx::BufferFormat storage_format,
17 gl::GLImage* image, 18 gl::GLImage* image,
18 const Rect& bounds_rect, 19 const Rect& bounds_rect,
19 const RectF& crop_rect) 20 const RectF& crop_rect,
21 bool handle_scaling)
20 : z_order_(z_order), 22 : z_order_(z_order),
21 transform_(transform), 23 transform_(transform),
24 storage_format_(storage_format),
22 image_(image), 25 image_(image),
23 bounds_rect_(bounds_rect), 26 bounds_rect_(bounds_rect),
24 crop_rect_(crop_rect) {} 27 crop_rect_(crop_rect),
28 handle_scaling_(handle_scaling) {}
25 29
26 GLSurfaceOverlay::~GLSurfaceOverlay() {} 30 GLSurfaceOverlay::~GLSurfaceOverlay() {}
27 31
28 bool GLSurfaceOverlay::ScheduleOverlayPlane(AcceleratedWidget widget) const { 32 bool GLSurfaceOverlay::ScheduleOverlayPlane(AcceleratedWidget widget) const {
29 return image_->ScheduleOverlayPlane(widget, z_order_, transform_, 33 return image_->ScheduleOverlayPlane(widget, z_order_, transform_,
30 bounds_rect_, crop_rect_); 34 storage_format_, bounds_rect_,
35 crop_rect_, handle_scaling_);
31 } 36 }
32 37
33 } // namespace gfx 38 } // namespace gfx
OLDNEW
« 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