OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |