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

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 virtual void bufferData(GLenum target, 227 virtual void bufferData(GLenum target,
228 GLsizeiptr size, 228 GLsizeiptr size,
229 const void* data, 229 const void* data,
230 GLenum usage); 230 GLenum usage);
231 virtual void* mapBufferCHROMIUM(GLenum target, 231 virtual void* mapBufferCHROMIUM(GLenum target,
232 GLenum access); 232 GLenum access);
233 virtual GLboolean unmapBufferCHROMIUM(GLenum target); 233 virtual GLboolean unmapBufferCHROMIUM(GLenum target);
234 234
235 virtual GLuint createImageCHROMIUM(GLsizei width, 235 virtual GLuint createImageCHROMIUM(GLsizei width,
236 GLsizei height, 236 GLsizei height,
237 GLenum internalformat); 237 GLenum internalformat,
238 GLenum usage);
238 virtual void destroyImageCHROMIUM(GLuint image_id); 239 virtual void destroyImageCHROMIUM(GLuint image_id);
239 virtual void getImageParameterivCHROMIUM(GLuint image_id, 240 virtual void getImageParameterivCHROMIUM(GLuint image_id,
240 GLenum pname, 241 GLenum pname,
241 GLint* params); 242 GLint* params);
242 virtual void* mapImageCHROMIUM(GLuint image_id, GLenum access); 243 virtual void* mapImageCHROMIUM(GLuint image_id);
243 virtual void unmapImageCHROMIUM(GLuint image_id); 244 virtual void unmapImageCHROMIUM(GLuint image_id);
244 virtual void texImageIOSurface2DCHROMIUM(GLenum target, 245 virtual void texImageIOSurface2DCHROMIUM(GLenum target,
245 GLsizei width, 246 GLsizei width,
246 GLsizei height, 247 GLsizei height,
247 GLuint io_surface_id, 248 GLuint io_surface_id,
248 GLuint plane) {} 249 GLuint plane) {}
249 250
250 virtual unsigned insertSyncPoint(); 251 virtual unsigned insertSyncPoint();
251 virtual void waitSyncPoint(unsigned sync_point); 252 virtual void waitSyncPoint(unsigned sync_point);
252 253
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 443
443 scoped_refptr<Namespace> namespace_; 444 scoped_refptr<Namespace> namespace_;
444 static Namespace* shared_namespace_; 445 static Namespace* shared_namespace_;
445 446
446 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 447 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
447 }; 448 };
448 449
449 } // namespace cc 450 } // namespace cc
450 451
451 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 452 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698