| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 // OutputSurface implementation. | 155 // OutputSurface implementation. |
| 156 void BindToClient(OutputSurfaceClient* client) override {} | 156 void BindToClient(OutputSurfaceClient* client) override {} |
| 157 void EnsureBackbuffer() override {} | 157 void EnsureBackbuffer() override {} |
| 158 void DiscardBackbuffer() override {} | 158 void DiscardBackbuffer() override {} |
| 159 void BindFramebuffer() override { | 159 void BindFramebuffer() override { |
| 160 bind_framebuffer_count_ += 1; | 160 bind_framebuffer_count_ += 1; |
| 161 } | 161 } |
| 162 void Reshape(const gfx::Size& size, | 162 void Reshape(const gfx::Size& size, |
| 163 float device_scale_factor, | 163 float device_scale_factor, |
| 164 const gfx::ColorSpace& color_space, | 164 const gfx::ColorSpace& color_space, |
| 165 bool has_alpha) override {} | 165 bool has_alpha, |
| 166 bool use_stencil) override {} |
| 166 void SwapBuffers(OutputSurfaceFrame frame) override {} | 167 void SwapBuffers(OutputSurfaceFrame frame) override {} |
| 167 uint32_t GetFramebufferCopyTextureFormat() override { | 168 uint32_t GetFramebufferCopyTextureFormat() override { |
| 168 // TestContextProvider has no real framebuffer, just use RGB. | 169 // TestContextProvider has no real framebuffer, just use RGB. |
| 169 return GL_RGB; | 170 return GL_RGB; |
| 170 } | 171 } |
| 171 bool HasExternalStencilTest() const override { return false; } | 172 bool HasExternalStencilTest() const override { return false; } |
| 172 void ApplyExternalStencil() override {} | 173 void ApplyExternalStencil() override {} |
| 173 OverlayCandidateValidator* GetOverlayCandidateValidator() const override { | 174 OverlayCandidateValidator* GetOverlayCandidateValidator() const override { |
| 174 return overlay_candidate_validator_.get(); | 175 return overlay_candidate_validator_.get(); |
| 175 } | 176 } |
| (...skipping 1810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1986 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), | 1987 kOverlayRect, render_pass_id_, 2, gfx::Vector2dF(), |
| 1987 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); | 1988 gfx::Size(), gfx::Vector2dF(1, 1), gfx::PointF()); |
| 1988 } | 1989 } |
| 1989 | 1990 |
| 1990 ProcessForOverlays(); | 1991 ProcessForOverlays(); |
| 1991 EXPECT_EQ(0U, ca_layer_list_.size()); | 1992 EXPECT_EQ(0U, ca_layer_list_.size()); |
| 1992 } | 1993 } |
| 1993 | 1994 |
| 1994 } // namespace | 1995 } // namespace |
| 1995 } // namespace cc | 1996 } // namespace cc |
| OLD | NEW |