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

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

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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/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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) { 848 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) {
849 context_should_support_io_surface_ = true; 849 context_should_support_io_surface_ = true;
850 850
851 child_output_surface_ = FakeOutputSurface::Create3d(); 851 child_output_surface_ = FakeOutputSurface::Create3d();
852 child_output_surface_->BindToClient(&output_surface_client_); 852 child_output_surface_->BindToClient(&output_surface_client_);
853 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 853 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
854 child_resource_provider_ = 854 child_resource_provider_ =
855 ResourceProvider::Create(child_output_surface_.get(), 855 ResourceProvider::Create(child_output_surface_.get(),
856 shared_bitmap_manager_.get(), 856 shared_bitmap_manager_.get(),
857 NULL, 857 NULL,
858 NULL,
858 0, 859 0,
859 false, 860 false,
860 1, 861 1,
861 false); 862 false);
862 } 863 }
863 864
864 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {} 865 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {}
865 866
866 virtual void SetupTree() override { 867 virtual void SetupTree() override {
867 gpu::gles2::GLES2Interface* gl = 868 gpu::gles2::GLES2Interface* gl =
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1713 virtual void AfterTest() override {} 1714 virtual void AfterTest() override {}
1714 1715
1715 bool deferred_; 1716 bool deferred_;
1716 }; 1717 };
1717 1718
1718 SINGLE_AND_MULTI_THREAD_TEST_F( 1719 SINGLE_AND_MULTI_THREAD_TEST_F(
1719 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); 1720 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame);
1720 1721
1721 } // namespace 1722 } // namespace
1722 } // namespace cc 1723 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_no_message_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698