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

Side by Side Diff: cc/layers/texture_layer_unittest.cc

Issue 845393002: cc: Create ProxyBeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 10 months 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 unified diff | Download patch
OLDNEW
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, nullptr, LayerTreeSettings()) { 54 : LayerTreeHost(client, nullptr, nullptr, LayerTreeSettings()) {
55 InitializeSingleThreaded(client, 55 InitializeSingleThreaded(client,
56 base::MessageLoopProxy::current(), 56 base::MessageLoopProxy::current(),
57 nullptr,
57 nullptr); 58 nullptr);
58 } 59 }
59 60
60 MOCK_METHOD0(SetNeedsCommit, void()); 61 MOCK_METHOD0(SetNeedsCommit, void());
61 MOCK_METHOD0(SetNeedsUpdateLayers, void()); 62 MOCK_METHOD0(SetNeedsUpdateLayers, void());
62 MOCK_METHOD0(StartRateLimiter, void()); 63 MOCK_METHOD0(StartRateLimiter, void());
63 MOCK_METHOD0(StopRateLimiter, void()); 64 MOCK_METHOD0(StopRateLimiter, void());
64 }; 65 };
65 66
66 class FakeTextureLayerClient : public TextureLayerClient { 67 class FakeTextureLayerClient : public TextureLayerClient {
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 int callback_count_; 1559 int callback_count_;
1559 scoped_refptr<Layer> root_; 1560 scoped_refptr<Layer> root_;
1560 scoped_refptr<TextureLayer> layer_; 1561 scoped_refptr<TextureLayer> layer_;
1561 }; 1562 };
1562 1563
1563 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( 1564 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(
1564 TextureLayerWithMailboxImplThreadDeleted); 1565 TextureLayerWithMailboxImplThreadDeleted);
1565 1566
1566 } // namespace 1567 } // namespace
1567 } // namespace cc 1568 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698