| 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, | |
| 22 int surface_id, | 21 int surface_id, |
| 23 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 22 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
| 24 scoped_ptr<BrowserCompositorOverlayCandidateValidator> | 23 scoped_ptr<BrowserCompositorOverlayCandidateValidator> |
| 25 overlay_candidate_validator, | 24 overlay_candidate_validator, |
| 26 unsigned int target, | 25 unsigned int target, |
| 27 unsigned int internalformat, | 26 unsigned int internalformat, |
| 28 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager); | 27 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager); |
| 29 ~GpuSurfacelessBrowserCompositorOutputSurface() override; | 28 ~GpuSurfacelessBrowserCompositorOutputSurface() override; |
| 30 | 29 |
| 31 private: | 30 private: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 43 | 42 |
| 44 unsigned int internalformat_; | 43 unsigned int internalformat_; |
| 45 scoped_ptr<GLHelper> gl_helper_; | 44 scoped_ptr<GLHelper> gl_helper_; |
| 46 scoped_ptr<BufferQueue> output_surface_; | 45 scoped_ptr<BufferQueue> output_surface_; |
| 47 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager_; | 46 BrowserGpuMemoryBufferManager* gpu_memory_buffer_manager_; |
| 48 }; | 47 }; |
| 49 | 48 |
| 50 } // namespace content | 49 } // namespace content |
| 51 | 50 |
| 52 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_
SURFACE_H_ | 51 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_
SURFACE_H_ |
| OLD | NEW |