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

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

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_surface_overlay.h ('k') | ui/gl/init/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"
(...skipping 15 matching lines...) Expand all
26 GLSurfaceOverlay::GLSurfaceOverlay(const GLSurfaceOverlay& other) = default; 26 GLSurfaceOverlay::GLSurfaceOverlay(const GLSurfaceOverlay& other) = default;
27 27
28 GLSurfaceOverlay::~GLSurfaceOverlay() {} 28 GLSurfaceOverlay::~GLSurfaceOverlay() {}
29 29
30 bool GLSurfaceOverlay::ScheduleOverlayPlane( 30 bool GLSurfaceOverlay::ScheduleOverlayPlane(
31 gfx::AcceleratedWidget widget) const { 31 gfx::AcceleratedWidget widget) const {
32 return image_->ScheduleOverlayPlane(widget, z_order_, transform_, 32 return image_->ScheduleOverlayPlane(widget, z_order_, transform_,
33 bounds_rect_, crop_rect_); 33 bounds_rect_, crop_rect_);
34 } 34 }
35 35
36 void GLSurfaceOverlay::Flush() const {
37 return image_->Flush();
38 }
39
36 } // namespace gl 40 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_overlay.h ('k') | ui/gl/init/gl_surface_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698