| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 4271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4282 return textures_.count(id); | 4282 return textures_.count(id); |
| 4283 } | 4283 } |
| 4284 | 4284 |
| 4285 // RendererClient implementation. | 4285 // RendererClient implementation. |
| 4286 virtual gfx::Size DeviceViewportSize() const OVERRIDE { | 4286 virtual gfx::Size DeviceViewportSize() const OVERRIDE { |
| 4287 return viewport_size_; | 4287 return viewport_size_; |
| 4288 } | 4288 } |
| 4289 virtual const LayerTreeSettings& Settings() const OVERRIDE { | 4289 virtual const LayerTreeSettings& Settings() const OVERRIDE { |
| 4290 return settings_; | 4290 return settings_; |
| 4291 } | 4291 } |
| 4292 virtual void DidLoseOutputSurface() OVERRIDE {} | |
| 4293 virtual void OnSwapBuffersComplete() OVERRIDE {} | |
| 4294 virtual void SetFullRootLayerDamage() OVERRIDE {} | 4292 virtual void SetFullRootLayerDamage() OVERRIDE {} |
| 4295 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 4293 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
| 4296 OVERRIDE {} | 4294 OVERRIDE {} |
| 4297 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 4295 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
| 4298 OVERRIDE {} | 4296 OVERRIDE {} |
| 4299 virtual bool HasImplThread() const OVERRIDE { return false; } | 4297 virtual bool HasImplThread() const OVERRIDE { return false; } |
| 4300 virtual bool ShouldClearRootRenderPass() const OVERRIDE { return true; } | 4298 virtual bool ShouldClearRootRenderPass() const OVERRIDE { return true; } |
| 4301 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const | 4299 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const |
| 4302 OVERRIDE { return CompositorFrameMetadata(); } | 4300 OVERRIDE { return CompositorFrameMetadata(); } |
| 4303 virtual bool AllowPartialSwap() const OVERRIDE { | 4301 virtual bool AllowPartialSwap() const OVERRIDE { |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5042 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), | 5040 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), |
| 5043 render_pass_quad->mask_uv_rect.ToString()); | 5041 render_pass_quad->mask_uv_rect.ToString()); |
| 5044 | 5042 |
| 5045 host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); | 5043 host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); |
| 5046 host_impl_->DidDrawAllLayers(frame); | 5044 host_impl_->DidDrawAllLayers(frame); |
| 5047 } | 5045 } |
| 5048 } | 5046 } |
| 5049 | 5047 |
| 5050 } // namespace | 5048 } // namespace |
| 5051 } // namespace cc | 5049 } // namespace cc |
| OLD | NEW |