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

Unified Diff: cc/layers/texture_layer_impl_unittest.cc

Issue 2596593003: Fix use-after-free in TextureLayerImplTest.ResourceNotFreedOnGpuRasterToggle. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_impl_unittest.cc
diff --git a/cc/layers/texture_layer_impl_unittest.cc b/cc/layers/texture_layer_impl_unittest.cc
index f901cdad52bf06a6f2e267b340b1c0282f9cf35e..870962cfb7c35a938c6157bea28c78b82222eb5a 100644
--- a/cc/layers/texture_layer_impl_unittest.cc
+++ b/cc/layers/texture_layer_impl_unittest.cc
@@ -150,6 +150,7 @@ TEST(TextureLayerImplTest, OutputIsSecure) {
TEST(TextureLayerImplTest, ResourceNotFreedOnGpuRasterToggle) {
LayerTreeSettings settings;
settings.gpu_rasterization_enabled = true;
+ bool released = false;
LayerTestCommon::LayerImplTest impl(settings);
impl.host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1));
@@ -171,7 +172,6 @@ TEST(TextureLayerImplTest, ResourceNotFreedOnGpuRasterToggle) {
impl.AddChildToRoot<TextureLayerImpl>();
texture_layer_impl->SetBounds(layer_size);
texture_layer_impl->SetDrawsContent(true);
- bool released = false;
texture_layer_impl->SetTextureMailbox(
texture_mailbox,
SingleReleaseCallbackImpl::Create(base::Bind(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698