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

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 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) { 841 LayerTreeHostContextTestDontUseLostResources() : lost_context_(false) {
842 context_should_support_io_surface_ = true; 842 context_should_support_io_surface_ = true;
843 843
844 child_output_surface_ = FakeOutputSurface::Create3d(); 844 child_output_surface_ = FakeOutputSurface::Create3d();
845 child_output_surface_->BindToClient(&output_surface_client_); 845 child_output_surface_->BindToClient(&output_surface_client_);
846 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 846 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
847 child_resource_provider_ = 847 child_resource_provider_ =
848 ResourceProvider::Create(child_output_surface_.get(), 848 ResourceProvider::Create(child_output_surface_.get(),
849 shared_bitmap_manager_.get(), 849 shared_bitmap_manager_.get(),
850 NULL, 850 NULL,
851 NULL,
851 0, 852 0,
852 false, 853 false,
853 1, 854 1,
854 false); 855 false);
855 } 856 }
856 857
857 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {} 858 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {}
858 859
859 virtual void SetupTree() override { 860 virtual void SetupTree() override {
860 gpu::gles2::GLES2Interface* gl = 861 gpu::gles2::GLES2Interface* gl =
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
1706 virtual void AfterTest() override {} 1707 virtual void AfterTest() override {}
1707 1708
1708 bool deferred_; 1709 bool deferred_;
1709 }; 1710 };
1710 1711
1711 SINGLE_AND_MULTI_THREAD_TEST_F( 1712 SINGLE_AND_MULTI_THREAD_TEST_F(
1712 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); 1713 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame);
1713 1714
1714 } // namespace 1715 } // namespace
1715 } // namespace cc 1716 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698