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

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

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 | « gpu/command_buffer/tests/gl_manager.cc ('k') | 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 EGLContext share_ctx, 72 EGLContext share_ctx,
73 const EGLint* attrib_list); 73 const EGLint* attrib_list);
74 void DestroyContext(EGLContext ctx); 74 void DestroyContext(EGLContext ctx);
75 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx); 75 bool MakeCurrent(EGLSurface draw, EGLSurface read, EGLContext ctx);
76 76
77 // GpuControl implementation. 77 // GpuControl implementation.
78 virtual gpu::Capabilities GetCapabilities() OVERRIDE; 78 virtual gpu::Capabilities GetCapabilities() OVERRIDE;
79 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width, 79 virtual gfx::GpuMemoryBuffer* CreateGpuMemoryBuffer(size_t width,
80 size_t height, 80 size_t height,
81 unsigned internalformat, 81 unsigned internalformat,
82 unsigned usage,
82 int32* id) OVERRIDE; 83 int32* id) OVERRIDE;
83 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; 84 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
84 virtual uint32 InsertSyncPoint() OVERRIDE; 85 virtual uint32 InsertSyncPoint() OVERRIDE;
85 virtual void SignalSyncPoint(uint32 sync_point, 86 virtual void SignalSyncPoint(uint32 sync_point,
86 const base::Closure& callback) OVERRIDE; 87 const base::Closure& callback) OVERRIDE;
87 virtual void SignalQuery(uint32 query, 88 virtual void SignalQuery(uint32 query,
88 const base::Closure& callback) OVERRIDE; 89 const base::Closure& callback) OVERRIDE;
89 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 90 virtual void SetSurfaceVisible(bool visible) OVERRIDE;
90 virtual void SendManagedMemoryStats( 91 virtual void SendManagedMemoryStats(
91 const gpu::ManagedMemoryStats& stats) OVERRIDE; 92 const gpu::ManagedMemoryStats& stats) OVERRIDE;
(...skipping 22 matching lines...) Expand all
114 scoped_ptr<Config> config_; 115 scoped_ptr<Config> config_;
115 scoped_ptr<Surface> surface_; 116 scoped_ptr<Surface> surface_;
116 scoped_ptr<gpu::gles2::GLES2Implementation> context_; 117 scoped_ptr<gpu::gles2::GLES2Implementation> context_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(Display); 119 DISALLOW_COPY_AND_ASSIGN(Display);
119 }; 120 };
120 121
121 } // namespace egl 122 } // namespace egl
122 123
123 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_ 124 #endif // GPU_GLES2_CONFORM_SUPPORT_EGL_DISPLAY_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/gl_manager.cc ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698