| 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/scheduler/begin_frame_source.h" | 9 #include "cc/scheduler/begin_frame_source.h" |
| 10 #include "cc/scheduler/delay_based_time_source.h" | 10 #include "cc/scheduler/delay_based_time_source.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 std::move(vsync_manager), | 82 std::move(vsync_manager), |
| 83 begin_frame_source, | 83 begin_frame_source, |
| 84 CreateTestValidatorOzone()) { | 84 CreateTestValidatorOzone()) { |
| 85 surface_size_ = gfx::Size(256, 256); | 85 surface_size_ = gfx::Size(256, 256); |
| 86 device_scale_factor_ = 1.f; | 86 device_scale_factor_ = 1.f; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; } | 89 void SetFlip(bool flip) { capabilities_.flipped_output_surface = flip; } |
| 90 | 90 |
| 91 void SwapBuffers(cc::CompositorFrame* frame) override {} | 91 void SwapBuffers(cc::CompositorFrame* frame) override {} |
| 92 uint32_t GetFramebufferCopyTextureFormat() override { return GL_RGB; } |
| 92 | 93 |
| 93 void OnReflectorChanged() override { | 94 void OnReflectorChanged() override { |
| 94 if (!reflector_) { | 95 if (!reflector_) { |
| 95 reflector_texture_.reset(); | 96 reflector_texture_.reset(); |
| 96 } else { | 97 } else { |
| 97 reflector_texture_.reset(new ReflectorTexture(context_provider())); | 98 reflector_texture_.reset(new ReflectorTexture(context_provider())); |
| 98 reflector_->OnSourceTextureMailboxUpdated(reflector_texture_->mailbox()); | 99 reflector_->OnSourceTextureMailboxUpdated(reflector_texture_->mailbox()); |
| 99 } | 100 } |
| 100 } | 101 } |
| 101 | 102 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 plane_2.plane_z_order = 1; | 224 plane_2.plane_z_order = 1; |
| 224 list.push_back(plane_1); | 225 list.push_back(plane_1); |
| 225 list.push_back(plane_2); | 226 list.push_back(plane_2); |
| 226 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); | 227 output_surface_->GetOverlayCandidateValidator()->CheckOverlaySupport(&list); |
| 227 EXPECT_FALSE(list[0].overlay_handled); | 228 EXPECT_FALSE(list[0].overlay_handled); |
| 228 } | 229 } |
| 229 #endif // defined(USE_OZONE) | 230 #endif // defined(USE_OZONE) |
| 230 | 231 |
| 231 } // namespace | 232 } // namespace |
| 232 } // namespace content | 233 } // namespace content |
| OLD | NEW |