| 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 "content/browser/compositor/browser_compositor_output_surface.h" | 5 #include "content/browser/compositor/browser_compositor_output_surface.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.h" | 10 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida
tor.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 vsync_manager_->UpdateVSyncParameters(timebase, interval); | 71 vsync_manager_->UpdateVSyncParameters(timebase, interval); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void BrowserCompositorOutputSurface::SetReflector(ReflectorImpl* reflector) { | 74 void BrowserCompositorOutputSurface::SetReflector(ReflectorImpl* reflector) { |
| 75 // Software mirroring is done by doing a GL copy out of the framebuffer - if | 75 // Software mirroring is done by doing a GL copy out of the framebuffer - if |
| 76 // we have overlays then that data will be missing. | 76 // we have overlays then that data will be missing. |
| 77 if (overlay_candidate_validator_) { | 77 if (overlay_candidate_validator_) { |
| 78 overlay_candidate_validator_->SetSoftwareMirrorMode(reflector != nullptr); | 78 overlay_candidate_validator_->SetSoftwareMirrorMode(reflector != nullptr); |
| 79 } | 79 } |
| 80 reflector_ = reflector; | 80 reflector_ = reflector; |
| 81 |
| 82 OnReflectorChanged(); |
| 83 } |
| 84 |
| 85 void BrowserCompositorOutputSurface::OnReflectorChanged() { |
| 86 } |
| 87 |
| 88 base::Closure |
| 89 BrowserCompositorOutputSurface::CreateCompositionStartedCallback() { |
| 90 return base::Closure(); |
| 81 } | 91 } |
| 82 | 92 |
| 83 cc::OverlayCandidateValidator* | 93 cc::OverlayCandidateValidator* |
| 84 BrowserCompositorOutputSurface::GetOverlayCandidateValidator() const { | 94 BrowserCompositorOutputSurface::GetOverlayCandidateValidator() const { |
| 85 return overlay_candidate_validator_.get(); | 95 return overlay_candidate_validator_.get(); |
| 86 } | 96 } |
| 87 | 97 |
| 88 } // namespace content | 98 } // namespace content |
| OLD | NEW |