summaryrefslogtreecommitdiffstats
path: root/cc/test/test_web_graphics_context_3d.h
diff options
context:
space:
mode:
authorboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-07 09:03:27 +0000
committerboliu@chromium.org <boliu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-07 09:03:27 +0000
commit2b154b2a2a4c2adf2d145cddbae49767acc67633 (patch)
tree2966cd155581d9786b1ea892dcd438696b1ef2c7 /cc/test/test_web_graphics_context_3d.h
parent8d0e6fe215548a3c19a569d300cc0f01e2e1f2ac (diff)
downloadchromium_src-2b154b2a2a4c2adf2d145cddbae49767acc67633.zip
chromium_src-2b154b2a2a4c2adf2d145cddbae49767acc67633.tar.gz
chromium_src-2b154b2a2a4c2adf2d145cddbae49767acc67633.tar.bz2
cc::OutputSurfaceClient::DeferredInitialize
SynchronousCompositorOutputSurface first starts in software only mode, then cc::OutputSurfaceClient::InitializeForGL is called to initialize the GL parts. BUG=230197 Review URL: https://chromiumcodereview.appspot.com/14772021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204771 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/test_web_graphics_context_3d.h')
-rw-r--r--cc/test/test_web_graphics_context_3d.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/test/test_web_graphics_context_3d.h b/cc/test/test_web_graphics_context_3d.h
index ffd847d..449b2bb 100644
--- a/cc/test/test_web_graphics_context_3d.h
+++ b/cc/test/test_web_graphics_context_3d.h
@@ -163,6 +163,9 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
}
void ResetUsedTextures() { used_textures_.clear(); }
+ void set_support_swapbuffers_complete_callback(bool support) {
+ support_swapbuffers_complete_callback_ = support;
+ }
void set_have_extension_io_surface(bool have) {
have_extension_io_surface_ = have;
}
@@ -197,6 +200,7 @@ class TestWebGraphicsContext3D : public FakeWebGraphicsContext3D {
unsigned next_image_id_;
unsigned next_texture_id_;
Attributes attributes_;
+ bool support_swapbuffers_complete_callback_;
bool have_extension_io_surface_;
bool have_extension_egl_image_;
int times_make_current_succeeds_;