| 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_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR
FACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR
FACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR
FACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_SUR
FACE_H_ |
| 7 | 7 |
| 8 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" | 8 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 class BrowserGpuMemoryBufferManager; | 12 class BrowserGpuMemoryBufferManager; |
| 13 class BufferQueue; | 13 class BufferQueue; |
| 14 class GLHelper; | 14 class GLHelper; |
| 15 | 15 |
| 16 class GpuSurfacelessBrowserCompositorOutputSurface | 16 class GpuSurfacelessBrowserCompositorOutputSurface |
| 17 : public GpuBrowserCompositorOutputSurface { | 17 : public GpuBrowserCompositorOutputSurface { |
| 18 public: | 18 public: |
| 19 GpuSurfacelessBrowserCompositorOutputSurface( | 19 GpuSurfacelessBrowserCompositorOutputSurface( |
| 20 const scoped_refptr<ContextProviderCommandBuffer>& context, | 20 const scoped_refptr<ContextProviderCommandBuffer>& context, |
| 21 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, |
| 21 int surface_id, | 22 int surface_id, |
| 22 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 23 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
| 23 scoped_ptr<BrowserCompositorOverlayCandidateValidator> | 24 scoped_ptr<BrowserCompositorOverlayCandidateValidator> |
| 24 overlay_candidate_validator, | 25 overlay_candidate_validator, |
| 25 unsigned int target, | 26 unsigned int target, |
| 26 unsigned int internalformat, | 27 unsigned int internalformat, |
| 27 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager); | 28 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager); |
| 28 ~GpuSurfacelessBrowserCompositorOutputSurface() override; | 29 ~GpuSurfacelessBrowserCompositorOutputSurface() override; |
| 29 | 30 |
| 30 private: | 31 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 42 | 43 |
| 43 unsigned int internalformat_; | 44 unsigned int internalformat_; |
| 44 scoped_ptr<GLHelper> gl_helper_; | 45 scoped_ptr<GLHelper> gl_helper_; |
| 45 scoped_ptr<BufferQueue> output_surface_; | 46 scoped_ptr<BufferQueue> output_surface_; |
| 46 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager_; | 47 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace content | 50 } // namespace content |
| 50 | 51 |
| 51 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_
SURFACE_H_ | 52 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_
SURFACE_H_ |
| OLD | NEW |