| 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/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
| 10 #include "cc/scheduler/begin_frame_source.h" | 10 #include "cc/scheduler/begin_frame_source.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 : BrowserCompositorOutputSurface(std::move(context_provider), | 83 : BrowserCompositorOutputSurface(std::move(context_provider), |
| 84 std::move(vsync_manager), | 84 std::move(vsync_manager), |
| 85 begin_frame_source, | 85 begin_frame_source, |
| 86 CreateTestValidatorOzone()) { | 86 CreateTestValidatorOzone()) { |
| 87 surface_size_ = gfx::Size(256, 256); | 87 surface_size_ = gfx::Size(256, 256); |
| 88 device_scale_factor_ = 1.f; | 88 device_scale_factor_ = 1.f; |
| 89 } | 89 } |
| 90 | 90 |
| 91 void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; } | 91 void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; } |
| 92 | 92 |
| 93 void EnsureBackbuffer() override {} |
| 94 void DiscardBackbuffer() override {} |
| 95 void BindFramebuffer() override {} |
| 93 void SwapBuffers(cc::CompositorFrame frame) override {} | 96 void SwapBuffers(cc::CompositorFrame frame) override {} |
| 94 uint32_t GetFramebufferCopyTextureFormat() override { return GL_RGB; } | 97 uint32_t GetFramebufferCopyTextureFormat() override { return GL_RGB; } |
| 98 bool IsDisplayedAsOverlayPlane() const override { return false; } |
| 99 unsigned GetOverlayTextureId() const override { return 0; } |
| 100 bool SurfaceIsSuspendForRecycle() const override { return false; } |
| 95 | 101 |
| 96 void OnReflectorChanged() override { | 102 void OnReflectorChanged() override { |
| 97 if (!reflector_) { | 103 if (!reflector_) { |
| 98 reflector_texture_.reset(); | 104 reflector_texture_.reset(); |
| 99 } else { | 105 } else { |
| 100 reflector_texture_.reset(new ReflectorTexture(context_provider())); | 106 reflector_texture_.reset(new ReflectorTexture(context_provider())); |
| 101 reflector_->OnSourceTextureMailboxUpdated(reflector_texture_->mailbox()); | 107 reflector_->OnSourceTextureMailboxUpdated(reflector_texture_->mailbox()); |
| 102 } | 108 } |
| 103 } | 109 } |
| 104 | 110 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 plane_2.plane_z_order = 1; | 232 plane_2.plane_z_order = 1; |
| 227 list.push_back(plane_1); | 233 list.push_back(plane_1); |
| 228 list.push_back(plane_2); | 234 list.push_back(plane_2); |
| 229 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); | 235 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); |
| 230 EXPECT_FALSE(list[0].overlay_handled); | 236 EXPECT_FALSE(list[0].overlay_handled); |
| 231 } | 237 } |
| 232 #endif // defined(USE_OZONE) | 238 #endif // defined(USE_OZONE) |
| 233 | 239 |
| 234 } // namespace | 240 } // namespace |
| 235 } // namespace content | 241 } // namespace content |
| OLD | NEW |