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

Side by Side Diff: ui/gl/gl_surface_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_surface.cc ('k') | ui/gl/gl_surface_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EGL_H_ 5 #ifndef UI_GL_GL_SURFACE_EGL_H_
6 #define UI_GL_GL_SURFACE_EGL_H_ 6 #define UI_GL_GL_SURFACE_EGL_H_
7 7
8 #if defined(OS_WIN) 8 #if defined(OS_WIN)
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 gfx::SwapResult SwapBuffers() override; 86 gfx::SwapResult SwapBuffers() override;
87 gfx::Size GetSize() override; 87 gfx::Size GetSize() override;
88 EGLSurface GetHandle() override; 88 EGLSurface GetHandle() override;
89 bool SupportsPostSubBuffer() override; 89 bool SupportsPostSubBuffer() override;
90 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; 90 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
91 bool SupportsCommitOverlayPlanes() override; 91 bool SupportsCommitOverlayPlanes() override;
92 gfx::SwapResult CommitOverlayPlanes() override; 92 gfx::SwapResult CommitOverlayPlanes() override;
93 VSyncProvider* GetVSyncProvider() override; 93 VSyncProvider* GetVSyncProvider() override;
94 bool ScheduleOverlayPlane(int z_order, 94 bool ScheduleOverlayPlane(int z_order,
95 OverlayTransform transform, 95 OverlayTransform transform,
96 gfx::BufferFormat storage_format,
96 gl::GLImage* image, 97 gl::GLImage* image,
97 const Rect& bounds_rect, 98 const Rect& bounds_rect,
98 const RectF& crop_rect) override; 99 const RectF& crop_rect,
100 bool handle_scaling) override;
99 101
100 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. 102 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider.
101 // Takes ownership of the VSyncProvider. 103 // Takes ownership of the VSyncProvider.
102 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); 104 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider);
103 105
104 protected: 106 protected:
105 ~NativeViewGLSurfaceEGL() override; 107 ~NativeViewGLSurfaceEGL() override;
106 108
107 EGLNativeWindowType window_; 109 EGLNativeWindowType window_;
108 110
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 ~SurfacelessEGL() override; 187 ~SurfacelessEGL() override;
186 188
187 private: 189 private:
188 gfx::Size size_; 190 gfx::Size size_;
189 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 191 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
190 }; 192 };
191 193
192 } // namespace gfx 194 } // namespace gfx
193 195
194 #endif // UI_GL_GL_SURFACE_EGL_H_ 196 #endif // UI_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698