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

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

Issue 8566041: Allow GLSurface to indicate that it supports a specific extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gpu_unittests. Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/gl/gl_surface.cc ('k') | ui/gfx/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GFX_GL_GL_SURFACE_EGL_H_ 5 #ifndef UI_GFX_GL_GL_SURFACE_EGL_H_
6 #define UI_GFX_GL_GL_SURFACE_EGL_H_ 6 #define UI_GFX_GL_GL_SURFACE_EGL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 NativeViewGLSurfaceEGL(bool software, gfx::PluginWindowHandle window); 56 NativeViewGLSurfaceEGL(bool software, gfx::PluginWindowHandle window);
57 virtual ~NativeViewGLSurfaceEGL(); 57 virtual ~NativeViewGLSurfaceEGL();
58 58
59 // Implement GLSurface. 59 // Implement GLSurface.
60 virtual bool Initialize(); 60 virtual bool Initialize();
61 virtual void Destroy(); 61 virtual void Destroy();
62 virtual bool IsOffscreen(); 62 virtual bool IsOffscreen();
63 virtual bool SwapBuffers(); 63 virtual bool SwapBuffers();
64 virtual gfx::Size GetSize(); 64 virtual gfx::Size GetSize();
65 virtual EGLSurface GetHandle(); 65 virtual EGLSurface GetHandle();
66 virtual bool SupportsPostSubBuffer(); 66 virtual std::string GetExtensions();
67 virtual bool PostSubBuffer(int x, int y, int width, int height); 67 virtual bool PostSubBuffer(int x, int y, int width, int height);
68 68
69 private: 69 private:
70 gfx::PluginWindowHandle window_; 70 gfx::PluginWindowHandle window_;
71 EGLSurface surface_; 71 EGLSurface surface_;
72 bool supports_post_sub_buffer_; 72 bool supports_post_sub_buffer_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL); 74 DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL);
75 }; 75 };
76 76
(...skipping 16 matching lines...) Expand all
93 private: 93 private:
94 gfx::Size size_; 94 gfx::Size size_;
95 EGLSurface surface_; 95 EGLSurface surface_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL); 97 DISALLOW_COPY_AND_ASSIGN(PbufferGLSurfaceEGL);
98 }; 98 };
99 99
100 } // namespace gfx 100 } // namespace gfx
101 101
102 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_ 102 #endif // UI_GFX_GL_GL_SURFACE_EGL_H_
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl_surface.cc ('k') | ui/gfx/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698