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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 MOCK_METHOD0(SetNeedsCommit, void()); | 73 MOCK_METHOD0(SetNeedsCommit, void()); |
74 MOCK_METHOD0(SetNeedsUpdateLayers, void()); | 74 MOCK_METHOD0(SetNeedsUpdateLayers, void()); |
75 MOCK_METHOD0(StartRateLimiter, void()); | 75 MOCK_METHOD0(StartRateLimiter, void()); |
76 MOCK_METHOD0(StopRateLimiter, void()); | 76 MOCK_METHOD0(StopRateLimiter, void()); |
77 | 77 |
78 private: | 78 private: |
79 MockLayerTreeHost(FakeLayerTreeHostClient* client, | 79 MockLayerTreeHost(FakeLayerTreeHostClient* client, |
80 LayerTreeHost::InitParams* params) | 80 LayerTreeHost::InitParams* params) |
81 : LayerTreeHost(params, CompositorMode::SingleThreaded) { | 81 : LayerTreeHost(params, CompositorMode::SINGLE_THREADED) { |
82 InitializeSingleThreaded(client, base::ThreadTaskRunnerHandle::Get(), | 82 InitializeSingleThreaded(client, base::ThreadTaskRunnerHandle::Get(), |
83 nullptr); | 83 nullptr); |
84 } | 84 } |
85 }; | 85 }; |
86 | 86 |
87 class FakeTextureLayerClient : public TextureLayerClient { | 87 class FakeTextureLayerClient : public TextureLayerClient { |
88 public: | 88 public: |
89 FakeTextureLayerClient() : mailbox_changed_(true) {} | 89 FakeTextureLayerClient() : mailbox_changed_(true) {} |
90 | 90 |
91 bool PrepareTextureMailbox( | 91 bool PrepareTextureMailbox( |
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1475 int callback_count_; | 1475 int callback_count_; |
1476 scoped_refptr<Layer> root_; | 1476 scoped_refptr<Layer> root_; |
1477 scoped_refptr<TextureLayer> layer_; | 1477 scoped_refptr<TextureLayer> layer_; |
1478 }; | 1478 }; |
1479 | 1479 |
1480 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( | 1480 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( |
1481 TextureLayerWithMailboxImplThreadDeleted); | 1481 TextureLayerWithMailboxImplThreadDeleted); |
1482 | 1482 |
1483 } // namespace | 1483 } // namespace |
1484 } // namespace cc | 1484 } // namespace cc |
OLD | NEW |