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

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

Issue 869433003: (not for commit) Simplified multi-threaded Ganesh with lock on Flush only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "cc/layers/content_layer.h" 8 #include "cc/layers/content_layer.h"
9 #include "cc/layers/delegated_frame_provider.h" 9 #include "cc/layers/delegated_frame_provider.h"
10 #include "cc/layers/delegated_frame_resource_collection.h" 10 #include "cc/layers/delegated_frame_resource_collection.h"
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 950
951 class LayerTreeHostContextTestDontUseLostResources 951 class LayerTreeHostContextTestDontUseLostResources
952 : public LayerTreeHostContextTest { 952 : public LayerTreeHostContextTest {
953 public: 953 public:
954 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) { 954 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) {
955 context_should_support_io_surface_ = true; 955 context_should_support_io_surface_ = true;
956 956
957 child_output_surface_ = FakeOutputSurface::Create3d(); 957 child_output_surface_ = FakeOutputSurface::Create3d();
958 child_output_surface_->BindToClient(&output_surface_client_); 958 child_output_surface_->BindToClient(&output_surface_client_);
959 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 959 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
960 child_resource_provider_ = 960 child_resource_provider_ = ResourceProvider::Create(
961 ResourceProvider::Create(child_output_surface_.get(), 961 child_output_surface_.get(), shared_bitmap_manager_.get(), NULL, NULL,
962 shared_bitmap_manager_.get(), 962 0, false, false, 1);
963 NULL,
964 NULL,
965 0,
966 false,
967 1);
968 } 963 }
969 964
970 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {} 965 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {}
971 966
972 void SetupTree() override { 967 void SetupTree() override {
973 gpu::gles2::GLES2Interface* gl = 968 gpu::gles2::GLES2Interface* gl =
974 child_output_surface_->context_provider()->ContextGL(); 969 child_output_surface_->context_provider()->ContextGL();
975 970
976 scoped_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData); 971 scoped_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData);
977 972
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 void AfterTest() override {} 1805 void AfterTest() override {}
1811 1806
1812 bool deferred_; 1807 bool deferred_;
1813 }; 1808 };
1814 1809
1815 SINGLE_AND_MULTI_THREAD_TEST_F( 1810 SINGLE_AND_MULTI_THREAD_TEST_F(
1816 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); 1811 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame);
1817 1812
1818 } // namespace 1813 } // namespace
1819 } // namespace cc 1814 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698