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

Side by Side Diff: ui/gl/gl_surface_overlay.h

Issue 1486773002: Add NativeViewGLSurfaceEGL::CommitOverlayPlanes support for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cop-bare-implementation
Patch Set: Move comment 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_egl.cc ('k') | ui/gl/gl_surface_overlay.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_GL_GL_SURFACE_OVERLAY_H_
6 #define UI_GL_GL_SURFACE_OVERLAY_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/geometry/rect_f.h"
12 #include "ui/gfx/native_widget_types.h"
13 #include "ui/gfx/overlay_transform.h"
14 #include "ui/gl/gl_image.h"
15
16 namespace gfx {
17
18 // For saving the properties of a GLImage overlay plane and scheduling it later.
19 class GLSurfaceOverlay {
20 public:
21 GLSurfaceOverlay(int z_order,
22 OverlayTransform transform,
23 gl::GLImage* image,
24 const Rect& bounds_rect,
25 const RectF& crop_rect);
26 ~GLSurfaceOverlay();
27
28 // Schedule the image as an overlay plane to be shown at swap time for
29 // |widget|.
30 bool ScheduleOverlayPlane(AcceleratedWidget widget) const;
31
32 private:
33 int z_order_;
34 OverlayTransform transform_;
35 scoped_refptr<gl::GLImage> image_;
36 Rect bounds_rect_;
37 RectF crop_rect_;
38 };
39
40 } // namespace gfx
41
42 #endif // UI_GL_GL_SURFACE_OVERLAY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_egl.cc ('k') | ui/gl/gl_surface_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698