| Index: cc/test/test_web_graphics_context_3d.h
|
| diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h
|
| index 0e12aece46845b889925251ae18a9e3a2aeac8f0..f98e418446c28a39548d1a69ddab617228e62e26 100644
|
| --- a/cc/test/test_web_graphics_context_3d.h
|
| +++ b/cc/test/test_web_graphics_context_3d.h
|
| @@ -22,6 +22,16 @@
|
| #include "third_party/khronos/GLES2/gl2.h"
|
| #include "ui/gfx/rect.h"
|
|
|
| +#ifdef __cplusplus
|
| +extern "C" {
|
| +#endif
|
| +
|
| +typedef struct _ClientBuffer* ClientBuffer;
|
| +
|
| +#ifdef __cplusplus
|
| +}
|
| +#endif
|
| +
|
| namespace cc {
|
| class TestContextSupport;
|
|
|
| @@ -250,20 +260,16 @@ class TestWebGraphicsContext3D {
|
| GLenum access);
|
| virtual GLboolean unmapBufferCHROMIUM(GLenum target);
|
|
|
| - virtual GLuint createImageCHROMIUM(GLsizei width,
|
| + virtual GLuint createImageCHROMIUM(ClientBuffer buffer,
|
| + GLsizei width,
|
| GLsizei height,
|
| - GLenum internalformat,
|
| - GLenum usage);
|
| + GLenum internalformat);
|
| virtual void destroyImageCHROMIUM(GLuint image_id);
|
| - virtual void getImageParameterivCHROMIUM(GLuint image_id,
|
| - GLenum pname,
|
| - GLint* params);
|
| - virtual void* mapImageCHROMIUM(GLuint image_id);
|
| - virtual void unmapImageCHROMIUM(GLuint image_id);
|
| virtual GLuint createGpuMemoryBufferImageCHROMIUM(GLsizei width,
|
| GLsizei height,
|
| GLenum internalformat,
|
| GLenum usage);
|
| +
|
| virtual void texImageIOSurface2DCHROMIUM(GLenum target,
|
| GLsizei width,
|
| GLsizei height,
|
| @@ -287,11 +293,7 @@ class TestWebGraphicsContext3D {
|
| times_end_query_succeeds_ = times;
|
| }
|
|
|
| - // When set, mapImageCHROMIUM and mapBufferCHROMIUM will return NULL after
|
| - // this many times.
|
| - void set_times_map_image_chromium_succeeds(int times) {
|
| - times_map_image_chromium_succeeds_ = times;
|
| - }
|
| + // When set, mapBufferCHROMIUM will return NULL after this many times.
|
| void set_times_map_buffer_chromium_succeeds(int times) {
|
| times_map_buffer_chromium_succeeds_ = times;
|
| }
|
| @@ -422,7 +424,7 @@ class TestWebGraphicsContext3D {
|
| unsigned next_image_id;
|
| unsigned next_texture_id;
|
| base::ScopedPtrHashMap<unsigned, Buffer> buffers;
|
| - base::ScopedPtrHashMap<unsigned, Image> images;
|
| + base::hash_set<unsigned> images;
|
| OrderedTextureMap textures;
|
|
|
| private:
|
| @@ -443,7 +445,6 @@ class TestWebGraphicsContext3D {
|
| int times_bind_texture_succeeds_;
|
| int times_end_query_succeeds_;
|
| bool context_lost_;
|
| - int times_map_image_chromium_succeeds_;
|
| int times_map_buffer_chromium_succeeds_;
|
| int current_used_transfer_buffer_usage_bytes_;
|
| int max_used_transfer_buffer_usage_bytes_;
|
|
|