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

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

Issue 1273163004: Revert of cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "content/browser/compositor/browser_compositor_output_surface.h" 11 #include "content/browser/compositor/browser_compositor_output_surface.h"
12 12
13 namespace ui { 13 namespace ui {
14 class CompositorVSyncManager; 14 class CompositorVSyncManager;
15 } 15 }
16 16
17 namespace content { 17 namespace content {
18 class CommandBufferProxyImpl; 18 class CommandBufferProxyImpl;
19 class ReflectorTexture; 19 class ReflectorTexture;
20 20
21 class OffscreenBrowserCompositorOutputSurface 21 class OffscreenBrowserCompositorOutputSurface
22 : public BrowserCompositorOutputSurface { 22 : public BrowserCompositorOutputSurface {
23 public: 23 public:
24 OffscreenBrowserCompositorOutputSurface( 24 OffscreenBrowserCompositorOutputSurface(
25 const scoped_refptr<ContextProviderCommandBuffer>& context, 25 const scoped_refptr<ContextProviderCommandBuffer>& context,
26 const scoped_refptr<ContextProviderCommandBuffer>& worker_context,
27 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 26 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
28 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 27 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
29 overlay_candidate_validator); 28 overlay_candidate_validator);
30 29
31 ~OffscreenBrowserCompositorOutputSurface() override; 30 ~OffscreenBrowserCompositorOutputSurface() override;
32 31
33 protected: 32 protected:
34 // cc::OutputSurface: 33 // cc::OutputSurface:
35 void EnsureBackbuffer() override; 34 void EnsureBackbuffer() override;
36 void DiscardBackbuffer() override; 35 void DiscardBackbuffer() override;
(...skipping 17 matching lines...) Expand all
54 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 53 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
55 weak_ptr_factory_; 54 weak_ptr_factory_;
56 55
57 private: 56 private:
58 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 57 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
59 }; 58 };
60 59
61 } // namespace content 60 } // namespace content
62 61
63 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 62 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698