| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 7 #include "mojo/gpu/gl_context.h" | 7 #include "mojo/gpu/gl_context.h" |
| 8 #include "mojo/gpu/gl_texture.h" | 8 #include "mojo/gpu/gl_texture.h" |
| 9 #include "mojo/public/cpp/application/application_impl.h" | 9 #include "mojo/public/cpp/application/application_impl.h" |
| 10 #include "mojo/public/cpp/application/application_test_base.h" | 10 #include "mojo/public/cpp/application/application_test_base.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 ->OnMailboxTextureReleased(); | 209 ->OnMailboxTextureReleased(); |
| 210 | 210 |
| 211 KickMessageLoop(); | 211 KickMessageLoop(); |
| 212 | 212 |
| 213 // Get a texture of the same size, should be null due to the released context. | 213 // Get a texture of the same size, should be null due to the released context. |
| 214 std::unique_ptr<mojo::GLTexture> texture2 = renderer.GetTexture(size); | 214 std::unique_ptr<mojo::GLTexture> texture2 = renderer.GetTexture(size); |
| 215 EXPECT_EQ(texture2.get(), nullptr); | 215 EXPECT_EQ(texture2.get(), nullptr); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace | 218 } // namespace |
| OLD | NEW |