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

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

Issue 2109803003: Add support for EXT_image_flush_external extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for EXT_image_flush_external extension Created 4 years, 5 months 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_image_surface_texture.h ('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
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 #ifndef UI_GL_GL_SURFACE_OVERLAY_H_ 5 #ifndef UI_GL_GL_SURFACE_OVERLAY_H_
6 #define UI_GL_GL_SURFACE_OVERLAY_H_ 6 #define UI_GL_GL_SURFACE_OVERLAY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 13 matching lines...) Expand all
24 GLImage* image, 24 GLImage* image,
25 const gfx::Rect& bounds_rect, 25 const gfx::Rect& bounds_rect,
26 const gfx::RectF& crop_rect); 26 const gfx::RectF& crop_rect);
27 GLSurfaceOverlay(const GLSurfaceOverlay& other); 27 GLSurfaceOverlay(const GLSurfaceOverlay& other);
28 ~GLSurfaceOverlay(); 28 ~GLSurfaceOverlay();
29 29
30 // Schedule the image as an overlay plane to be shown at swap time for 30 // Schedule the image as an overlay plane to be shown at swap time for
31 // |widget|. 31 // |widget|.
32 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget) const; 32 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget) const;
33 33
34 void Flush() const;
35
34 private: 36 private:
35 int z_order_; 37 int z_order_;
36 gfx::OverlayTransform transform_; 38 gfx::OverlayTransform transform_;
37 scoped_refptr<GLImage> image_; 39 scoped_refptr<GLImage> image_;
38 gfx::Rect bounds_rect_; 40 gfx::Rect bounds_rect_;
39 gfx::RectF crop_rect_; 41 gfx::RectF crop_rect_;
40 }; 42 };
41 43
42 } // namespace gl 44 } // namespace gl
43 45
44 #endif // UI_GL_GL_SURFACE_OVERLAY_H_ 46 #endif // UI_GL_GL_SURFACE_OVERLAY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_surface_texture.h ('k') | ui/gl/gl_surface_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698