| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "cc/base/region.h" | 10 #include "cc/base/region.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 } | 143 } |
| 144 | 144 |
| 145 size_t DefaultOverlayProcessor::GetStrategyCount() { | 145 size_t DefaultOverlayProcessor::GetStrategyCount() { |
| 146 return strategies_.size(); | 146 return strategies_.size(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 class OverlayOutputSurface : public OutputSurface { | 149 class OverlayOutputSurface : public OutputSurface { |
| 150 public: | 150 public: |
| 151 explicit OverlayOutputSurface( | 151 explicit OverlayOutputSurface( |
| 152 scoped_refptr<TestContextProvider> context_provider) | 152 scoped_refptr<TestContextProvider> context_provider) |
| 153 : OutputSurface(std::move(context_provider), nullptr, nullptr) { | 153 : OutputSurface(std::move(context_provider)) { |
| 154 surface_size_ = kDisplaySize; | 154 surface_size_ = kDisplaySize; |
| 155 device_scale_factor_ = 1; | 155 device_scale_factor_ = 1; |
| 156 is_displayed_as_overlay_plane_ = true; | 156 is_displayed_as_overlay_plane_ = true; |
| 157 } | 157 } |
| 158 | 158 |
| 159 void SetScaleFactor(float scale_factor) { | 159 void SetScaleFactor(float scale_factor) { |
| 160 device_scale_factor_ = scale_factor; | 160 device_scale_factor_ = scale_factor; |
| 161 } | 161 } |
| 162 | 162 |
| 163 // OutputSurface implementation | 163 // OutputSurface implementation |
| (...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1878 quad_->SetNew(pass_->shared_quad_state_list.back(), kOverlayRect, | 1878 quad_->SetNew(pass_->shared_quad_state_list.back(), kOverlayRect, |
| 1879 kOverlayRect, render_pass_id_, 0, gfx::Vector2dF(), gfx::Size(), | 1879 kOverlayRect, render_pass_id_, 0, gfx::Vector2dF(), gfx::Size(), |
| 1880 filters_, gfx::Vector2dF(1, 1), gfx::PointF(), | 1880 filters_, gfx::Vector2dF(1, 1), gfx::PointF(), |
| 1881 background_filters_); | 1881 background_filters_); |
| 1882 ProcessForOverlays(); | 1882 ProcessForOverlays(); |
| 1883 EXPECT_EQ(0U, ca_layer_list_.size()); | 1883 EXPECT_EQ(0U, ca_layer_list_.size()); |
| 1884 } | 1884 } |
| 1885 | 1885 |
| 1886 } // namespace | 1886 } // namespace |
| 1887 } // namespace cc | 1887 } // namespace cc |
| OLD | NEW |