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

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

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed vmpstr's comments. Created 4 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
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/proto/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 MOCK_METHOD0(SetNeedsCommit, void()); 77 MOCK_METHOD0(SetNeedsCommit, void());
78 MOCK_METHOD0(SetNeedsUpdateLayers, void()); 78 MOCK_METHOD0(SetNeedsUpdateLayers, void());
79 MOCK_METHOD0(StartRateLimiter, void()); 79 MOCK_METHOD0(StartRateLimiter, void());
80 MOCK_METHOD0(StopRateLimiter, void()); 80 MOCK_METHOD0(StopRateLimiter, void());
81 81
82 private: 82 private:
83 MockLayerTreeHost(FakeLayerTreeHostClient* client, 83 MockLayerTreeHost(FakeLayerTreeHostClient* client,
84 LayerTreeHost::InitParams* params) 84 LayerTreeHost::InitParams* params)
85 : LayerTreeHost(params, CompositorMode::SingleThreaded) { 85 : LayerTreeHost(params, CompositorMode::SINGLE_THREADED) {
86 InitializeSingleThreaded(client, base::ThreadTaskRunnerHandle::Get(), 86 InitializeSingleThreaded(client, base::ThreadTaskRunnerHandle::Get(),
87 nullptr); 87 nullptr);
88 } 88 }
89 }; 89 };
90 90
91 class FakeTextureLayerClient : public TextureLayerClient { 91 class FakeTextureLayerClient : public TextureLayerClient {
92 public: 92 public:
93 FakeTextureLayerClient() : mailbox_changed_(true) {} 93 FakeTextureLayerClient() : mailbox_changed_(true) {}
94 94
95 bool PrepareTextureMailbox( 95 bool PrepareTextureMailbox(
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 int callback_count_; 1487 int callback_count_;
1488 scoped_refptr<Layer> root_; 1488 scoped_refptr<Layer> root_;
1489 scoped_refptr<TextureLayer> layer_; 1489 scoped_refptr<TextureLayer> layer_;
1490 }; 1490 };
1491 1491
1492 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F( 1492 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(
1493 TextureLayerWithMailboxImplThreadDeleted); 1493 TextureLayerWithMailboxImplThreadDeleted);
1494 1494
1495 } // namespace 1495 } // namespace
1496 } // namespace cc 1496 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/proto/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698