summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/context_group_unittest.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-02 03:58:07 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-02 03:58:07 +0000
commit4f9958143b76ecb130820cc5e4edbd820640676e (patch)
tree09bf3f5c10f261f3f6aac2fb6de038c750d67619 /gpu/command_buffer/service/context_group_unittest.cc
parent508b89a64ab700aa09f21fc666a5588b47360eab (diff)
downloadchromium_src-4f9958143b76ecb130820cc5e4edbd820640676e.zip
chromium_src-4f9958143b76ecb130820cc5e4edbd820640676e.tar.gz
chromium_src-4f9958143b76ecb130820cc5e4edbd820640676e.tar.bz2
Fix stream textures + mailboxes
DestroyStreamTexture was called from DeleteTextures, which is awkward because it doesn't mean the texture is actually deleted. Instead, rationalize StreamTexture ownership, by making it associated with the TextureRef (i.e. client id) that created it. When the TextureRef is destroyed and the stream texture wasn't explicitly destroyed yet, it gets destroyed implicitly at this point. The StreamTextureManager still maps StreamTextures by service id, so that multiple TextureRef in the same ContextGroup (in practice, in the same channel actually) will still allow updates on bind. This also makes explicit the fact that the StreamTextureManager is shared per ContxtGroup, since we rely on that for Update. BUG=254494 Review URL: https://chromiumcodereview.appspot.com/18430002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/context_group_unittest.cc')
-rw-r--r--gpu/command_buffer/service/context_group_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/context_group_unittest.cc b/gpu/command_buffer/service/context_group_unittest.cc
index 11df9e8..c80f619 100644
--- a/gpu/command_buffer/service/context_group_unittest.cc
+++ b/gpu/command_buffer/service/context_group_unittest.cc
@@ -39,7 +39,7 @@ class ContextGroupTest : public testing::Test {
::gfx::GLInterface::SetGLInterface(gl_.get());
decoder_.reset(new MockGLES2Decoder());
group_ = scoped_refptr<ContextGroup>(
- new ContextGroup(NULL, NULL, NULL, true));
+ new ContextGroup(NULL, NULL, NULL, NULL, true));
}
virtual void TearDown() {