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 <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 gpu::Mailbox MailboxFromChar(char value) { | 45 gpu::Mailbox MailboxFromChar(char value) { |
46 gpu::Mailbox mailbox; | 46 gpu::Mailbox mailbox; |
47 memset(mailbox.name, value, sizeof(mailbox.name)); | 47 memset(mailbox.name, value, sizeof(mailbox.name)); |
48 return mailbox; | 48 return mailbox; |
49 } | 49 } |
50 | 50 |
51 class MockLayerTreeHost : public LayerTreeHost { | 51 class MockLayerTreeHost : public LayerTreeHost { |
52 public: | 52 public: |
53 explicit MockLayerTreeHost(FakeLayerTreeHostClient* client) | 53 explicit MockLayerTreeHost(FakeLayerTreeHostClient* client) |
54 : LayerTreeHost(client, nullptr, LayerTreeSettings()) { | 54 : LayerTreeHost(client, nullptr, nullptr, LayerTreeSettings()) { |
55 InitializeSingleThreaded(client, base::MessageLoopProxy::current()); | 55 InitializeSingleThreaded(client, base::MessageLoopProxy::current()); |
56 } | 56 } |
57 | 57 |
58 MOCK_METHOD0(SetNeedsCommit, void()); | 58 MOCK_METHOD0(SetNeedsCommit, void()); |
59 MOCK_METHOD0(SetNeedsUpdateLayers, void()); | 59 MOCK_METHOD0(SetNeedsUpdateLayers, void()); |
60 MOCK_METHOD0(StartRateLimiter, void()); | 60 MOCK_METHOD0(StartRateLimiter, void()); |
61 MOCK_METHOD0(StopRateLimiter, void()); | 61 MOCK_METHOD0(StopRateLimiter, void()); |
62 }; | 62 }; |
63 | 63 |
64 class FakeTextureLayerClient : public TextureLayerClient { | 64 class FakeTextureLayerClient : public TextureLayerClient { |
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1582 int callback_count_; | 1582 int callback_count_; |
1583 scoped_refptr<Layer> root_; | 1583 scoped_refptr<Layer> root_; |
1584 scoped_refptr<TextureLayer> layer_; | 1584 scoped_refptr<TextureLayer> layer_; |
1585 }; | 1585 }; |
1586 | 1586 |
1587 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( | 1587 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( |
1588 TextureLayerWithMailboxImplThreadDeleted); | 1588 TextureLayerWithMailboxImplThreadDeleted); |
1589 | 1589 |
1590 } // namespace | 1590 } // namespace |
1591 } // namespace cc | 1591 } // namespace cc |
OLD | NEW |