| 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/output/software_renderer.h" | 5 #include "cc/output/software_renderer.h" |
| 6 | 6 |
| 7 #include "cc/layers/quad_sink.h" | 7 #include "cc/layers/quad_sink.h" |
| 8 #include "cc/output/compositor_frame_metadata.h" | 8 #include "cc/output/compositor_frame_metadata.h" |
| 9 #include "cc/output/software_output_device.h" | 9 #include "cc/output/software_output_device.h" |
| 10 #include "cc/quads/render_pass.h" | 10 #include "cc/quads/render_pass.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 } | 45 } |
| 46 | 46 |
| 47 void set_should_clear_root_render_pass(bool clear_root_render_pass) { | 47 void set_should_clear_root_render_pass(bool clear_root_render_pass) { |
| 48 should_clear_root_render_pass_ = clear_root_render_pass; | 48 should_clear_root_render_pass_ = clear_root_render_pass; |
| 49 } | 49 } |
| 50 | 50 |
| 51 // RendererClient implementation. | 51 // RendererClient implementation. |
| 52 virtual gfx::Size DeviceViewportSize() const OVERRIDE { | 52 virtual gfx::Size DeviceViewportSize() const OVERRIDE { |
| 53 return viewport_size_; | 53 return viewport_size_; |
| 54 } | 54 } |
| 55 virtual float DeviceScaleFactor() const OVERRIDE { |
| 56 return 1.f; |
| 57 } |
| 55 virtual const LayerTreeSettings& Settings() const OVERRIDE { | 58 virtual const LayerTreeSettings& Settings() const OVERRIDE { |
| 56 return settings_; | 59 return settings_; |
| 57 } | 60 } |
| 58 virtual void SetFullRootLayerDamage() OVERRIDE {} | 61 virtual void SetFullRootLayerDamage() OVERRIDE {} |
| 59 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 62 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
| 60 OVERRIDE {} | 63 OVERRIDE {} |
| 61 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 64 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
| 62 OVERRIDE {} | 65 OVERRIDE {} |
| 63 virtual bool HasImplThread() const OVERRIDE { return false; } | 66 virtual bool HasImplThread() const OVERRIDE { return false; } |
| 64 virtual bool ShouldClearRootRenderPass() const OVERRIDE { | 67 virtual bool ShouldClearRootRenderPass() const OVERRIDE { |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 output.getColor(viewport_rect.width() - 1, viewport_rect.height() - 1)); | 261 output.getColor(viewport_rect.width() - 1, viewport_rect.height() - 1)); |
| 259 | 262 |
| 260 EXPECT_EQ(SK_ColorMAGENTA, | 263 EXPECT_EQ(SK_ColorMAGENTA, |
| 261 output.getColor(smaller_rect.x(), smaller_rect.y())); | 264 output.getColor(smaller_rect.x(), smaller_rect.y())); |
| 262 EXPECT_EQ(SK_ColorMAGENTA, | 265 EXPECT_EQ(SK_ColorMAGENTA, |
| 263 output.getColor(smaller_rect.right() - 1, smaller_rect.bottom() - 1)); | 266 output.getColor(smaller_rect.right() - 1, smaller_rect.bottom() - 1)); |
| 264 } | 267 } |
| 265 | 268 |
| 266 } // namespace | 269 } // namespace |
| 267 } // namespace cc | 270 } // namespace cc |
| OLD | NEW |