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

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

Issue 1477593002: gpu: Initial implementation of CommitOverlayPlanes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-cop-command
Patch Set: typo 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 bool Initialize() override; 80 bool Initialize() override;
81 void Destroy() override; 81 void Destroy() override;
82 bool Resize(const gfx::Size& size, float scale_factor) override; 82 bool Resize(const gfx::Size& size, float scale_factor) override;
83 bool Recreate() override; 83 bool Recreate() override;
84 bool IsOffscreen() override; 84 bool IsOffscreen() override;
85 gfx::SwapResult SwapBuffers() override; 85 gfx::SwapResult SwapBuffers() override;
86 gfx::Size GetSize() override; 86 gfx::Size GetSize() override;
87 EGLSurface GetHandle() override; 87 EGLSurface GetHandle() override;
88 bool SupportsPostSubBuffer() override; 88 bool SupportsPostSubBuffer() override;
89 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; 89 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
90 bool SupportsCommitOverlayPlanes() override;
91 gfx::SwapResult CommitOverlayPlanes() override;
90 VSyncProvider* GetVSyncProvider() override; 92 VSyncProvider* GetVSyncProvider() override;
91 93
92 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. 94 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider.
93 // Takes ownership of the VSyncProvider. 95 // Takes ownership of the VSyncProvider.
94 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); 96 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider);
95 97
96 protected: 98 protected:
97 ~NativeViewGLSurfaceEGL() override; 99 ~NativeViewGLSurfaceEGL() override;
98 100
99 EGLNativeWindowType window_; 101 EGLNativeWindowType window_;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 ~SurfacelessEGL() override; 173 ~SurfacelessEGL() override;
172 174
173 private: 175 private:
174 gfx::Size size_; 176 gfx::Size size_;
175 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 177 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
176 }; 178 };
177 179
178 } // namespace gfx 180 } // namespace gfx
179 181
180 #endif // UI_GL_GL_SURFACE_EGL_H_ 182 #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') | ui/gl/gl_surface_egl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698