| 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 #ifndef SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 5 #ifndef SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ |
| 6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "cc/output/in_process_context_provider.h" | 10 #include "cc/output/in_process_context_provider.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 uint32_t GetFramebufferCopyTextureFormat() override; | 39 uint32_t GetFramebufferCopyTextureFormat() override; |
| 40 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; | 40 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
| 41 bool IsDisplayedAsOverlayPlane() const override; | 41 bool IsDisplayedAsOverlayPlane() const override; |
| 42 unsigned GetOverlayTextureId() const override; | 42 unsigned GetOverlayTextureId() const override; |
| 43 bool SurfaceIsSuspendForRecycle() const override; | 43 bool SurfaceIsSuspendForRecycle() const override; |
| 44 bool HasExternalStencilTest() const override; | 44 bool HasExternalStencilTest() const override; |
| 45 void ApplyExternalStencil() override; | 45 void ApplyExternalStencil() override; |
| 46 | 46 |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 void OnSwapBuffersComplete(); | 49 // Called when a swap completion is signaled from ImageTransportSurface. |
| 50 void OnVSyncParametersUpdated(const base::TimeTicks& timebase, | 50 void OnGpuSwapBuffersCompleted( |
| 51 const base::TimeDelta& interval); | 51 const std::vector<ui::LatencyInfo>& latency_info, |
| 52 gfx::SwapResult result, |
| 53 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac); |
| 54 void OnVSyncParametersUpdated(base::TimeTicks timebase, |
| 55 base::TimeDelta interval); |
| 52 | 56 |
| 53 cc::OutputSurfaceClient* client_ = nullptr; | 57 cc::OutputSurfaceClient* client_ = nullptr; |
| 54 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; | 58 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; |
| 59 |
| 55 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; | 60 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; |
| 56 }; | 61 }; |
| 57 | 62 |
| 58 } // namespace ui | 63 } // namespace ui |
| 59 | 64 |
| 60 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ | 65 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ |
| OLD | NEW |