| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/layers/texture_layer.h" | 5 #include "cc/layers/texture_layer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 scoped_refptr<TextureLayer> texture_layer_; | 1276 scoped_refptr<TextureLayer> texture_layer_; |
| 1277 | 1277 |
| 1278 // Used on the main thread. | 1278 // Used on the main thread. |
| 1279 bool mailbox_changed_; | 1279 bool mailbox_changed_; |
| 1280 TextureMailbox mailbox_; | 1280 TextureMailbox mailbox_; |
| 1281 int mailbox_returned_; | 1281 int mailbox_returned_; |
| 1282 int prepare_called_; | 1282 int prepare_called_; |
| 1283 int commit_count_; | 1283 int commit_count_; |
| 1284 }; | 1284 }; |
| 1285 | 1285 |
| 1286 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerChangeInvisibleMailboxTest); | 1286 // Flaky when multi-threaded. crbug.com/702868 |
| 1287 SINGLE_THREAD_TEST_F(TextureLayerChangeInvisibleMailboxTest); |
| 1287 | 1288 |
| 1288 // Test that TextureLayerImpl::ReleaseResources can be called which releases | 1289 // Test that TextureLayerImpl::ReleaseResources can be called which releases |
| 1289 // the mailbox back to TextureLayerClient. | 1290 // the mailbox back to TextureLayerClient. |
| 1290 class TextureLayerReleaseResourcesBase | 1291 class TextureLayerReleaseResourcesBase |
| 1291 : public LayerTreeTest, | 1292 : public LayerTreeTest, |
| 1292 public TextureLayerClient { | 1293 public TextureLayerClient { |
| 1293 public: | 1294 public: |
| 1294 // TextureLayerClient implementation. | 1295 // TextureLayerClient implementation. |
| 1295 bool PrepareTextureMailbox( | 1296 bool PrepareTextureMailbox( |
| 1296 TextureMailbox* mailbox, | 1297 TextureMailbox* mailbox, |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1495 base::ThreadChecker main_thread_; | 1496 base::ThreadChecker main_thread_; |
| 1496 int callback_count_; | 1497 int callback_count_; |
| 1497 scoped_refptr<Layer> root_; | 1498 scoped_refptr<Layer> root_; |
| 1498 scoped_refptr<TextureLayer> layer_; | 1499 scoped_refptr<TextureLayer> layer_; |
| 1499 }; | 1500 }; |
| 1500 | 1501 |
| 1501 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted); | 1502 SINGLE_AND_MULTI_THREAD_TEST_F(TextureLayerWithMailboxImplThreadDeleted); |
| 1502 | 1503 |
| 1503 } // namespace | 1504 } // namespace |
| 1504 } // namespace cc | 1505 } // namespace cc |
| OLD | NEW |