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 abfd9c97abd8052b69f5945ce5a1aaab3c94449d..212da16d3cd903394a9c19faab6671f3fa49dae7 100644 |
--- a/cc/test/test_web_graphics_context_3d.h |
+++ b/cc/test/test_web_graphics_context_3d.h |
@@ -122,6 +122,11 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D { |
have_extension_egl_image_ = have; |
} |
+ // When this context is lost, all contexts in its share group are also lost. |
+ void add_share_group_context(WebKit::WebGraphicsContext3D* context3d) { |
+ shared_contexts_.push_back(context3d); |
+ } |
+ |
static const WebKit::WebGLId kExternalTextureId; |
virtual WebKit::WebGLId NextTextureId(); |
@@ -142,6 +147,7 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D { |
WebGraphicsContextLostCallback* context_lost_callback_; |
std::vector<WebKit::WebGLId> textures_; |
base::hash_set<WebKit::WebGLId> used_textures_; |
+ std::vector<WebKit::WebGraphicsContext3D*> shared_contexts_; |
int width_; |
int height_; |
}; |