Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h

Issue 2511273002: Decouple BrowserCompositorOutputSurface from BeginFrameSource. (Closed)
Patch Set: Bring back GpuBrowserCompositorOutputSurface destructor Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" 10 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
11 #include "gpu/ipc/common/surface_handle.h" 11 #include "gpu/ipc/common/surface_handle.h"
12 12
13 namespace gpu { 13 namespace gpu {
14 class GpuMemoryBufferManager; 14 class GpuMemoryBufferManager;
15 } 15 }
16 16
17 namespace display_compositor { 17 namespace display_compositor {
18 class BufferQueue; 18 class BufferQueue;
19 class GLHelper; 19 class GLHelper;
20 } 20 }
21 21
22 namespace content { 22 namespace content {
23 23
24 class GpuSurfacelessBrowserCompositorOutputSurface 24 class GpuSurfacelessBrowserCompositorOutputSurface
25 : public GpuBrowserCompositorOutputSurface { 25 : public GpuBrowserCompositorOutputSurface {
26 public: 26 public:
27 GpuSurfacelessBrowserCompositorOutputSurface( 27 GpuSurfacelessBrowserCompositorOutputSurface(
28 scoped_refptr<ContextProviderCommandBuffer> context, 28 scoped_refptr<ContextProviderCommandBuffer> context,
29 gpu::SurfaceHandle surface_handle, 29 gpu::SurfaceHandle surface_handle,
30 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, 30 const UpdateVSyncParametersCallback& update_vsync_parameters_callback,
31 cc::SyntheticBeginFrameSource* begin_frame_source,
32 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> 31 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
33 overlay_candidate_validator, 32 overlay_candidate_validator,
34 unsigned int target, 33 unsigned int target,
35 unsigned int internalformat, 34 unsigned int internalformat,
36 gfx::BufferFormat format, 35 gfx::BufferFormat format,
37 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); 36 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager);
38 ~GpuSurfacelessBrowserCompositorOutputSurface() override; 37 ~GpuSurfacelessBrowserCompositorOutputSurface() override;
39 38
40 // cc::OutputSurface implementation. 39 // cc::OutputSurface implementation.
41 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 40 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
(...skipping 17 matching lines...) Expand all
59 gfx::Size swap_size_; 58 gfx::Size swap_size_;
60 59
61 std::unique_ptr<display_compositor::GLHelper> gl_helper_; 60 std::unique_ptr<display_compositor::GLHelper> gl_helper_;
62 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_; 61 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_;
63 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_; 62 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
64 }; 63 };
65 64
66 } // namespace content 65 } // namespace content
67 66
68 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_ SURFACE_H_ 67 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_SURFACELESS_BROWSER_COMPOSITOR_OUTPUT_ SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698