| 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 CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/non_thread_safe.h" | 9 #include "base/threading/non_thread_safe.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // Constructor used by the Vulkan implementation. | 74 // Constructor used by the Vulkan implementation. |
| 75 BrowserCompositorOutputSurface( | 75 BrowserCompositorOutputSurface( |
| 76 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider, | 76 const scoped_refptr<cc::VulkanContextProvider>& vulkan_context_provider, |
| 77 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 77 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
| 78 cc::SyntheticBeginFrameSource* begin_frame_source); | 78 cc::SyntheticBeginFrameSource* begin_frame_source); |
| 79 | 79 |
| 80 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_; | 80 scoped_refptr<ui::CompositorVSyncManager> vsync_manager_; |
| 81 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source_; | 81 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source_; |
| 82 ReflectorImpl* reflector_; | 82 ReflectorImpl* reflector_; |
| 83 base::TimeTicks last_vsync_timebase_; |
| 84 base::TimeDelta last_vsync_interval_; |
| 83 | 85 |
| 84 private: | 86 private: |
| 85 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 87 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
| 86 overlay_candidate_validator_; | 88 overlay_candidate_validator_; |
| 87 | 89 |
| 88 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); | 90 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 } // namespace content | 93 } // namespace content |
| 92 | 94 |
| 93 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 95 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |