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

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

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_image.h ('k') | ui/gl/gl_image_egl.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_IMAGE_EGL_H_ 5 #ifndef UI_GL_GL_IMAGE_EGL_H_
6 #define UI_GL_GL_IMAGE_EGL_H_ 6 #define UI_GL_GL_IMAGE_EGL_H_
7 7
8 #include "base/threading/thread_checker.h" 8 #include "base/threading/thread_checker.h"
9 #include "ui/gl/gl_bindings.h" 9 #include "ui/gl/gl_bindings.h"
10 #include "ui/gl/gl_image.h" 10 #include "ui/gl/gl_image.h"
(...skipping 12 matching lines...) Expand all
23 unsigned GetInternalFormat() override; 23 unsigned GetInternalFormat() override;
24 bool BindTexImage(unsigned target) override; 24 bool BindTexImage(unsigned target) override;
25 void ReleaseTexImage(unsigned target) override {} 25 void ReleaseTexImage(unsigned target) override {}
26 bool CopyTexImage(unsigned target) override; 26 bool CopyTexImage(unsigned target) override;
27 bool CopyTexSubImage(unsigned target, 27 bool CopyTexSubImage(unsigned target,
28 const gfx::Point& offset, 28 const gfx::Point& offset,
29 const gfx::Rect& rect) override; 29 const gfx::Rect& rect) override;
30 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 30 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
31 int z_order, 31 int z_order,
32 gfx::OverlayTransform transform, 32 gfx::OverlayTransform transform,
33 gfx::BufferFormat storage_format,
33 const gfx::Rect& bounds_rect, 34 const gfx::Rect& bounds_rect,
34 const gfx::RectF& crop_rect) override; 35 const gfx::RectF& crop_rect,
36 bool handle_scaling) override;
35 37
36 protected: 38 protected:
37 ~GLImageEGL() override; 39 ~GLImageEGL() override;
38 40
39 EGLImageKHR egl_image_; 41 EGLImageKHR egl_image_;
40 const gfx::Size size_; 42 const gfx::Size size_;
41 base::ThreadChecker thread_checker_; 43 base::ThreadChecker thread_checker_;
42 44
43 private: 45 private:
44 DISALLOW_COPY_AND_ASSIGN(GLImageEGL); 46 DISALLOW_COPY_AND_ASSIGN(GLImageEGL);
45 }; 47 };
46 48
47 } // namespace gl 49 } // namespace gl
48 50
49 #endif // UI_GL_GL_IMAGE_EGL_H_ 51 #endif // UI_GL_GL_IMAGE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image.h ('k') | ui/gl/gl_image_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698