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 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 bool HasExternalStencilTest() const override { return false; } | 209 bool HasExternalStencilTest() const override { return false; } |
210 void ApplyExternalStencil() override {} | 210 void ApplyExternalStencil() override {} |
211 OverlayCandidateValidatorType* GetOverlayCandidateValidator() const override { | 211 OverlayCandidateValidatorType* GetOverlayCandidateValidator() const override { |
212 return overlay_candidate_validator_.get(); | 212 return overlay_candidate_validator_.get(); |
213 } | 213 } |
214 bool IsDisplayedAsOverlayPlane() const override { | 214 bool IsDisplayedAsOverlayPlane() const override { |
215 return is_displayed_as_overlay_plane_; | 215 return is_displayed_as_overlay_plane_; |
216 } | 216 } |
217 unsigned GetOverlayTextureId() const override { return 10000; } | 217 unsigned GetOverlayTextureId() const override { return 10000; } |
218 bool SurfaceIsSuspendForRecycle() const override { return false; } | 218 bool SurfaceIsSuspendForRecycle() const override { return false; } |
| 219 bool CanPartialDraw(const gfx::Rect& damage) override { return false; } |
219 | 220 |
220 void set_is_displayed_as_overlay_plane(bool value) { | 221 void set_is_displayed_as_overlay_plane(bool value) { |
221 is_displayed_as_overlay_plane_ = value; | 222 is_displayed_as_overlay_plane_ = value; |
222 } | 223 } |
223 | 224 |
224 void SetOverlayCandidateValidator(OverlayCandidateValidatorType* validator) { | 225 void SetOverlayCandidateValidator(OverlayCandidateValidatorType* validator) { |
225 overlay_candidate_validator_.reset(validator); | 226 overlay_candidate_validator_.reset(validator); |
226 } | 227 } |
227 | 228 |
228 unsigned bind_framebuffer_count() const { return bind_framebuffer_count_; } | 229 unsigned bind_framebuffer_count() const { return bind_framebuffer_count_; } |
(...skipping 2296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2525 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(), | 2526 kOverlayRect, render_pass_id_, 2, gfx::RectF(), gfx::Size(), |
2526 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF()); | 2527 gfx::Vector2dF(1, 1), gfx::PointF(), gfx::RectF()); |
2527 } | 2528 } |
2528 | 2529 |
2529 ProcessForOverlays(); | 2530 ProcessForOverlays(); |
2530 EXPECT_EQ(0U, ca_layer_list_.size()); | 2531 EXPECT_EQ(0U, ca_layer_list_.size()); |
2531 } | 2532 } |
2532 | 2533 |
2533 } // namespace | 2534 } // namespace |
2534 } // namespace cc | 2535 } // namespace cc |
OLD | NEW |