OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/memory/ptr_util.h" | 5 #include "base/memory/ptr_util.h" |
6 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 #include "cc/output/output_surface_frame.h" | 9 #include "cc/output/output_surface_frame.h" |
10 #include "cc/scheduler/begin_frame_source.h" | 10 #include "cc/scheduler/begin_frame_source.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 : BrowserCompositorOutputSurface(std::move(context_provider), | 80 : BrowserCompositorOutputSurface(std::move(context_provider), |
81 UpdateVSyncParametersCallback(), | 81 UpdateVSyncParametersCallback(), |
82 CreateTestValidatorOzone()) {} | 82 CreateTestValidatorOzone()) {} |
83 | 83 |
84 void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; } | 84 void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; } |
85 | 85 |
86 void BindToClient(cc::OutputSurfaceClient* client) override {} | 86 void BindToClient(cc::OutputSurfaceClient* client) override {} |
87 void EnsureBackbuffer() override {} | 87 void EnsureBackbuffer() override {} |
88 void DiscardBackbuffer() override {} | 88 void DiscardBackbuffer() override {} |
89 void BindFramebuffer() override {} | 89 void BindFramebuffer() override {} |
| 90 void SetDrawRectangle(const gfx::Rect& draw_rectangle) override {} |
90 void Reshape(const gfx::Size& size, | 91 void Reshape(const gfx::Size& size, |
91 float device_scale_factor, | 92 float device_scale_factor, |
92 const gfx::ColorSpace& color_space, | 93 const gfx::ColorSpace& color_space, |
93 bool has_alpha, | 94 bool has_alpha, |
94 bool use_stencil) override {} | 95 bool use_stencil) override {} |
95 void SwapBuffers(cc::OutputSurfaceFrame frame) override {} | 96 void SwapBuffers(cc::OutputSurfaceFrame frame) override {} |
96 uint32_t GetFramebufferCopyTextureFormat() override { return GL_RGB; } | 97 uint32_t GetFramebufferCopyTextureFormat() override { return GL_RGB; } |
97 bool IsDisplayedAsOverlayPlane() const override { return false; } | 98 bool IsDisplayedAsOverlayPlane() const override { return false; } |
98 unsigned GetOverlayTextureId() const override { return 0; } | 99 unsigned GetOverlayTextureId() const override { return 0; } |
99 bool SurfaceIsSuspendForRecycle() const override { return false; } | 100 bool SurfaceIsSuspendForRecycle() const override { return false; } |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 plane_2.plane_z_order = 1; | 232 plane_2.plane_z_order = 1; |
232 list.push_back(plane_1); | 233 list.push_back(plane_1); |
233 list.push_back(plane_2); | 234 list.push_back(plane_2); |
234 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); | 235 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); |
235 EXPECT_FALSE(list[0].overlay_handled); | 236 EXPECT_FALSE(list[0].overlay_handled); |
236 } | 237 } |
237 #endif // defined(USE_OZONE) | 238 #endif // defined(USE_OZONE) |
238 | 239 |
239 } // namespace | 240 } // namespace |
240 } // namespace content | 241 } // namespace content |
OLD | NEW |