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

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

Issue 648293006: cc: turn on distance field text on animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more test :) 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | 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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 child_output_surface_ = FakeOutputSurface::Create3d(); 912 child_output_surface_ = FakeOutputSurface::Create3d();
913 child_output_surface_->BindToClient(&output_surface_client_); 913 child_output_surface_->BindToClient(&output_surface_client_);
914 shared_bitmap_manager_.reset(new TestSharedBitmapManager()); 914 shared_bitmap_manager_.reset(new TestSharedBitmapManager());
915 child_resource_provider_ = 915 child_resource_provider_ =
916 ResourceProvider::Create(child_output_surface_.get(), 916 ResourceProvider::Create(child_output_surface_.get(),
917 shared_bitmap_manager_.get(), 917 shared_bitmap_manager_.get(),
918 NULL, 918 NULL,
919 NULL, 919 NULL,
920 0, 920 0,
921 false, 921 false,
922 1, 922 1);
923 false);
924 } 923 }
925 924
926 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {} 925 static void EmptyReleaseCallback(unsigned sync_point, bool lost) {}
927 926
928 void SetupTree() override { 927 void SetupTree() override {
929 gpu::gles2::GLES2Interface* gl = 928 gpu::gles2::GLES2Interface* gl =
930 child_output_surface_->context_provider()->ContextGL(); 929 child_output_surface_->context_provider()->ContextGL();
931 930
932 scoped_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData); 931 scoped_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData);
933 932
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1773 void AfterTest() override {} 1772 void AfterTest() override {}
1774 1773
1775 bool deferred_; 1774 bool deferred_;
1776 }; 1775 };
1777 1776
1778 SINGLE_AND_MULTI_THREAD_TEST_F( 1777 SINGLE_AND_MULTI_THREAD_TEST_F(
1779 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); 1778 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame);
1780 1779
1781 } // namespace 1780 } // namespace
1782 } // namespace cc 1781 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698