| 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_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // Adapts a WebGraphicsContext3DCommandBufferImpl into a | 23 // Adapts a WebGraphicsContext3DCommandBufferImpl into a |
| 24 // cc::OutputSurface that also handles vsync parameter updates | 24 // cc::OutputSurface that also handles vsync parameter updates |
| 25 // arriving from the GPU process. | 25 // arriving from the GPU process. |
| 26 class GpuBrowserCompositorOutputSurface | 26 class GpuBrowserCompositorOutputSurface |
| 27 : public BrowserCompositorOutputSurface { | 27 : public BrowserCompositorOutputSurface { |
| 28 public: | 28 public: |
| 29 GpuBrowserCompositorOutputSurface( | 29 GpuBrowserCompositorOutputSurface( |
| 30 const scoped_refptr<ContextProviderCommandBuffer>& context, | 30 const scoped_refptr<ContextProviderCommandBuffer>& context, |
| 31 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, | 31 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, |
| 32 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 32 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
| 33 scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source, |
| 33 scoped_ptr<BrowserCompositorOverlayCandidateValidator> | 34 scoped_ptr<BrowserCompositorOverlayCandidateValidator> |
| 34 overlay_candidate_validator); | 35 overlay_candidate_validator); |
| 35 | 36 |
| 36 ~GpuBrowserCompositorOutputSurface() override; | 37 ~GpuBrowserCompositorOutputSurface() override; |
| 37 | 38 |
| 38 protected: | 39 protected: |
| 39 // BrowserCompositorOutputSurface: | 40 // BrowserCompositorOutputSurface: |
| 40 void OnReflectorChanged() override; | 41 void OnReflectorChanged() override; |
| 41 void OnGpuSwapBuffersCompleted( | 42 void OnGpuSwapBuffersCompleted( |
| 42 const std::vector<ui::LatencyInfo>& latency_info, | 43 const std::vector<ui::LatencyInfo>& latency_info, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 update_vsync_parameters_callback_; | 75 update_vsync_parameters_callback_; |
| 75 | 76 |
| 76 scoped_ptr<ReflectorTexture> reflector_texture_; | 77 scoped_ptr<ReflectorTexture> reflector_texture_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); | 79 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace content | 82 } // namespace content |
| 82 | 83 |
| 83 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 84 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |