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

Side by Side Diff: cc/trees/layer_tree_host_impl_unittest.cc

Issue 17114008: cc: Remove cc::Thread and cc::ThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-thread: clarify threads in UpdateBackgroundAnimateTicking, test asserts Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 using ::testing::_; 54 using ::testing::_;
55 using media::VideoFrame; 55 using media::VideoFrame;
56 56
57 namespace cc { 57 namespace cc {
58 namespace { 58 namespace {
59 59
60 class LayerTreeHostImplTest : public testing::Test, 60 class LayerTreeHostImplTest : public testing::Test,
61 public LayerTreeHostImplClient { 61 public LayerTreeHostImplClient {
62 public: 62 public:
63 LayerTreeHostImplTest() 63 LayerTreeHostImplTest()
64 : proxy_(scoped_ptr<Thread>()), 64 : proxy_(),
piman 2013/06/18 17:56:25 nit: remove redundant default initializer
65 always_impl_thread_(&proxy_), 65 always_impl_thread_(&proxy_),
66 always_main_thread_blocked_(&proxy_), 66 always_main_thread_blocked_(&proxy_),
67 did_try_initialize_renderer_(false), 67 did_try_initialize_renderer_(false),
68 on_can_draw_state_changed_called_(false), 68 on_can_draw_state_changed_called_(false),
69 has_pending_tree_(false), 69 has_pending_tree_(false),
70 did_request_commit_(false), 70 did_request_commit_(false),
71 did_request_redraw_(false), 71 did_request_redraw_(false),
72 did_upload_visible_tile_(false), 72 did_upload_visible_tile_(false),
73 reduce_memory_result_(true) { 73 reduce_memory_result_(true) {
74 media::InitializeMediaLibraryForTesting(); 74 media::InitializeMediaLibraryForTesting();
(...skipping 5941 matching lines...) Expand 10 before | Expand all | Expand 10 after
6016 EXPECT_FALSE(did_try_initialize_renderer_); 6016 EXPECT_FALSE(did_try_initialize_renderer_);
6017 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>()); 6017 host_impl_->DeferredInitialize(scoped_refptr<ContextProvider>());
6018 EXPECT_TRUE(did_try_initialize_renderer_); 6018 EXPECT_TRUE(did_try_initialize_renderer_);
6019 6019
6020 // Defer intialized GL draw. 6020 // Defer intialized GL draw.
6021 DrawFrame(); 6021 DrawFrame();
6022 } 6022 }
6023 6023
6024 } // namespace 6024 } // namespace
6025 } // namespace cc 6025 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698