| OLD | NEW |
| 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/layers/delegated_renderer_layer_impl.h" | 5 #include "cc/layers/delegated_renderer_layer_impl.h" |
| 6 | 6 |
| 7 #include "cc/base/scoped_ptr_vector.h" | 7 #include "cc/base/scoped_ptr_vector.h" |
| 8 #include "cc/layers/append_quads_data.h" | 8 #include "cc/layers/append_quads_data.h" |
| 9 #include "cc/layers/quad_sink.h" | 9 #include "cc/layers/quad_sink.h" |
| 10 #include "cc/layers/solid_color_layer_impl.h" | 10 #include "cc/layers/solid_color_layer_impl.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 always_impl_thread_and_main_thread_blocked_(&proxy_) { | 37 always_impl_thread_and_main_thread_blocked_(&proxy_) { |
| 38 LayerTreeSettings settings; | 38 LayerTreeSettings settings; |
| 39 settings.minimum_occlusion_tracking_size = gfx::Size(); | 39 settings.minimum_occlusion_tracking_size = gfx::Size(); |
| 40 | 40 |
| 41 host_impl_ = LayerTreeHostImpl::Create(settings, | 41 host_impl_ = LayerTreeHostImpl::Create(settings, |
| 42 &client_, | 42 &client_, |
| 43 &proxy_, | 43 &proxy_, |
| 44 &stats_instrumentation_); | 44 &stats_instrumentation_); |
| 45 host_impl_->InitializeRenderer(CreateFakeOutputSurface()); | 45 host_impl_->InitializeRenderer(CreateFakeOutputSurface()); |
| 46 host_impl_->SetViewportSize(gfx::Size(10, 10)); | 46 host_impl_->SetViewportSize(gfx::Size(10, 10)); |
| 47 client_.SetLayerTreeHostImpl(host_impl_.get()); |
| 47 } | 48 } |
| 48 | 49 |
| 49 protected: | 50 protected: |
| 50 FakeProxy proxy_; | 51 FakeProxy proxy_; |
| 51 FakeLayerTreeHostImplClient client_; | 52 FakeLayerTreeHostImplClient client_; |
| 52 DebugScopedSetImplThreadAndMainThreadBlocked | 53 DebugScopedSetImplThreadAndMainThreadBlocked |
| 53 always_impl_thread_and_main_thread_blocked_; | 54 always_impl_thread_and_main_thread_blocked_; |
| 54 FakeRenderingStatsInstrumentation stats_instrumentation_; | 55 FakeRenderingStatsInstrumentation stats_instrumentation_; |
| 55 scoped_ptr<LayerTreeHostImpl> host_impl_; | 56 scoped_ptr<LayerTreeHostImpl> host_impl_; |
| 56 }; | 57 }; |
| (...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1245 root_delegated_shared_quad_state->clip_rect.ToString()); | 1246 root_delegated_shared_quad_state->clip_rect.ToString()); |
| 1246 // Quads came with a clip rect. | 1247 // Quads came with a clip rect. |
| 1247 EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); | 1248 EXPECT_TRUE(root_delegated_shared_quad_state->is_clipped); |
| 1248 | 1249 |
| 1249 host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); | 1250 host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); |
| 1250 host_impl_->DidDrawAllLayers(frame); | 1251 host_impl_->DidDrawAllLayers(frame); |
| 1251 } | 1252 } |
| 1252 | 1253 |
| 1253 } // namespace | 1254 } // namespace |
| 1254 } // namespace cc | 1255 } // namespace cc |
| OLD | NEW |