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

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

Issue 1230203007: Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 4 months 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_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 "content/browser/compositor/browser_compositor_output_surface.h" 9 #include "content/browser/compositor/browser_compositor_output_surface.h"
10 #include "ui/gfx/swap_result.h" 10 #include "ui/gfx/swap_result.h"
11 11
12 namespace ui { 12 namespace ui {
13 class CompositorVSyncManager; 13 class CompositorVSyncManager;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 class CommandBufferProxyImpl; 17 class CommandBufferProxyImpl;
18 class BrowserCompositorOverlayCandidateValidator; 18 class BrowserCompositorOverlayCandidateValidator;
19 class ReflectorTexture; 19 class ReflectorTexture;
20 20
21 // Adapts a WebGraphicsContext3DCommandBufferImpl into a 21 // Adapts a WebGraphicsContext3DCommandBufferImpl into a
22 // cc::OutputSurface that also handles vsync parameter updates 22 // cc::OutputSurface that also handles vsync parameter updates
23 // arriving from the GPU process. 23 // arriving from the GPU process.
24 class GpuBrowserCompositorOutputSurface 24 class GpuBrowserCompositorOutputSurface
25 : public BrowserCompositorOutputSurface { 25 : public BrowserCompositorOutputSurface {
26 public: 26 public:
27 GpuBrowserCompositorOutputSurface( 27 GpuBrowserCompositorOutputSurface(
28 const scoped_refptr<ContextProviderCommandBuffer>& context, 28 const scoped_refptr<ContextProviderCommandBuffer>& context,
29 const scoped_refptr<ContextProviderCommandBuffer>& worker_context,
29 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 30 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
30 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 31 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
31 overlay_candidate_validator); 32 overlay_candidate_validator);
32 33
33 ~GpuBrowserCompositorOutputSurface() override; 34 ~GpuBrowserCompositorOutputSurface() override;
34 35
35 protected: 36 protected:
36 // BrowserCompositorOutputSurface: 37 // BrowserCompositorOutputSurface:
37 void OnReflectorChanged() override; 38 void OnReflectorChanged() override;
38 39
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 update_vsync_parameters_callback_; 73 update_vsync_parameters_callback_;
73 74
74 scoped_ptr<ReflectorTexture> reflector_texture_; 75 scoped_ptr<ReflectorTexture> reflector_texture_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 77 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
77 }; 78 };
78 79
79 } // namespace content 80 } // namespace content
80 81
81 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 82 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698