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

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

Issue 1583283004: Ensure alpha channel in backbuffer is correct with DirectComposition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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.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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; 95 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
96 bool SupportsCommitOverlayPlanes() override; 96 bool SupportsCommitOverlayPlanes() override;
97 gfx::SwapResult CommitOverlayPlanes() override; 97 gfx::SwapResult CommitOverlayPlanes() override;
98 VSyncProvider* GetVSyncProvider() override; 98 VSyncProvider* GetVSyncProvider() override;
99 bool ScheduleOverlayPlane(int z_order, 99 bool ScheduleOverlayPlane(int z_order,
100 OverlayTransform transform, 100 OverlayTransform transform,
101 gl::GLImage* image, 101 gl::GLImage* image,
102 const Rect& bounds_rect, 102 const Rect& bounds_rect,
103 const RectF& crop_rect) override; 103 const RectF& crop_rect) override;
104 bool FlipsVertically() const override; 104 bool FlipsVertically() const override;
105 bool BuffersFlipped() const override;
105 106
106 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider. 107 // Create a NativeViewGLSurfaceEGL with an externally provided VSyncProvider.
107 // Takes ownership of the VSyncProvider. 108 // Takes ownership of the VSyncProvider.
108 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider); 109 virtual bool Initialize(scoped_ptr<VSyncProvider> sync_provider);
109 110
110 // Takes care of the platform dependant bits, of any, for creating the window. 111 // Takes care of the platform dependant bits, of any, for creating the window.
111 virtual bool InitializeNativeWindow(); 112 virtual bool InitializeNativeWindow();
112 113
113 protected: 114 protected:
114 ~NativeViewGLSurfaceEGL() override; 115 ~NativeViewGLSurfaceEGL() override;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 ~SurfacelessEGL() override; 202 ~SurfacelessEGL() override;
202 203
203 private: 204 private:
204 gfx::Size size_; 205 gfx::Size size_;
205 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL); 206 DISALLOW_COPY_AND_ASSIGN(SurfacelessEGL);
206 }; 207 };
207 208
208 } // namespace gfx 209 } // namespace gfx
209 210
210 #endif // UI_GL_GL_SURFACE_EGL_H_ 211 #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