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

Side by Side Diff: gpu/gles2_conform_support/egl/display.h

Issue 10911086: Add support to test harness EGL for OpenGL ES 1.1 tests on Regal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | gpu/gles2_conform_support/egl/display.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 GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 5 #ifndef GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
7 7
8 #include <EGL/egl.h> 8 #include <EGL/egl.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 create_offscreen_ = true; 42 create_offscreen_ = true;
43 create_offscreen_width_ = width; 43 create_offscreen_width_ = width;
44 create_offscreen_height_ = height; 44 create_offscreen_height_ = height;
45 } 45 }
46 46
47 bool is_initialized() const { return is_initialized_; } 47 bool is_initialized() const { return is_initialized_; }
48 bool Initialize(); 48 bool Initialize();
49 49
50 // Config routines. 50 // Config routines.
51 bool IsValidConfig(EGLConfig config); 51 bool IsValidConfig(EGLConfig config);
52 bool ChooseConfigs(
53 EGLConfig* configs, EGLint config_size, EGLint* num_config);
52 bool GetConfigs(EGLConfig* configs, EGLint config_size, EGLint* num_config); 54 bool GetConfigs(EGLConfig* configs, EGLint config_size, EGLint* num_config);
53 bool GetConfigAttrib(EGLConfig config, EGLint attribute, EGLint* value); 55 bool GetConfigAttrib(EGLConfig config, EGLint attribute, EGLint* value);
54 56
55 // Surface routines. 57 // Surface routines.
56 bool IsValidNativeWindow(EGLNativeWindowType win); 58 bool IsValidNativeWindow(EGLNativeWindowType win);
57 bool IsValidSurface(EGLSurface surface); 59 bool IsValidSurface(EGLSurface surface);
58 EGLSurface CreateWindowSurface(EGLConfig config, 60 EGLSurface CreateWindowSurface(EGLConfig config,
59 EGLNativeWindowType win, 61 EGLNativeWindowType win,
60 const EGLint* attrib_list); 62 const EGLint* attrib_list);
61 void DestroySurface(EGLSurface surface); 63 void DestroySurface(EGLSurface surface);
(...skipping 28 matching lines...) Expand all
90 scoped_ptr<Config> config_; 92 scoped_ptr<Config> config_;
91 scoped_ptr<Surface> surface_; 93 scoped_ptr<Surface> surface_;
92 scoped_ptr<gpu::gles2::GLES2Implementation> context_; 94 scoped_ptr<gpu::gles2::GLES2Implementation> context_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(Display); 96 DISALLOW_COPY_AND_ASSIGN(Display);
95 }; 97 };
96 98
97 } // namespace egl 99 } // namespace egl
98 100
99 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 101 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698