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

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

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_web_graphics_context_3d.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 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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 virtual void getUniformfv(GLuint program, GLint location, GLfloat* value) {} 241 virtual void getUniformfv(GLuint program, GLint location, GLfloat* value) {}
242 virtual void getUniformiv(GLuint program, GLint location, GLint* value) {} 242 virtual void getUniformiv(GLuint program, GLint location, GLint* value) {}
243 virtual void getVertexAttribfv(GLuint index, GLenum pname, GLfloat* value) {} 243 virtual void getVertexAttribfv(GLuint index, GLenum pname, GLfloat* value) {}
244 virtual void getVertexAttribiv(GLuint index, GLenum pname, GLint* value) {} 244 virtual void getVertexAttribiv(GLuint index, GLenum pname, GLint* value) {}
245 245
246 virtual void bindBuffer(GLenum target, GLuint buffer); 246 virtual void bindBuffer(GLenum target, GLuint buffer);
247 virtual void bufferData(GLenum target, 247 virtual void bufferData(GLenum target,
248 GLsizeiptr size, 248 GLsizeiptr size,
249 const void* data, 249 const void* data,
250 GLenum usage); 250 GLenum usage);
251 virtual void pixelStorei(GLenum pname, GLint param);
251 virtual void* mapBufferCHROMIUM(GLenum target, 252 virtual void* mapBufferCHROMIUM(GLenum target,
252 GLenum access); 253 GLenum access);
253 virtual GLboolean unmapBufferCHROMIUM(GLenum target); 254 virtual GLboolean unmapBufferCHROMIUM(GLenum target);
254 255
255 virtual GLuint createImageCHROMIUM(ClientBuffer buffer, 256 virtual GLuint createImageCHROMIUM(ClientBuffer buffer,
256 GLsizei width, 257 GLsizei width,
257 GLsizei height, 258 GLsizei height,
258 GLenum internalformat); 259 GLenum internalformat);
259 virtual void destroyImageCHROMIUM(GLuint image_id); 260 virtual void destroyImageCHROMIUM(GLuint image_id);
260 virtual GLuint createGpuMemoryBufferImageCHROMIUM(GLsizei width, 261 virtual GLuint createGpuMemoryBufferImageCHROMIUM(GLsizei width,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 int max_texture_size_; 457 int max_texture_size_;
457 bool reshape_called_; 458 bool reshape_called_;
458 int width_; 459 int width_;
459 int height_; 460 int height_;
460 float scale_factor_; 461 float scale_factor_;
461 TestContextSupport* test_support_; 462 TestContextSupport* test_support_;
462 gfx::Rect update_rect_; 463 gfx::Rect update_rect_;
463 UpdateType last_update_type_; 464 UpdateType last_update_type_;
464 unsigned next_insert_sync_point_; 465 unsigned next_insert_sync_point_;
465 unsigned last_waited_sync_point_; 466 unsigned last_waited_sync_point_;
467 int unpack_alignment_;
466 468
467 unsigned bound_buffer_; 469 unsigned bound_buffer_;
468 TextureTargets texture_targets_; 470 TextureTargets texture_targets_;
469 471
470 scoped_refptr<Namespace> namespace_; 472 scoped_refptr<Namespace> namespace_;
471 static Namespace* shared_namespace_; 473 static Namespace* shared_namespace_;
472 474
473 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 475 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
474 }; 476 };
475 477
476 } // namespace cc 478 } // namespace cc
477 479
478 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 480 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/test_gles2_interface.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698