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

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

Issue 1124523003: Revert of Enable BeginFrame scheduling on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/browser/compositor/browser_compositor_output_surface.h" 10 #include "content/browser/compositor/browser_compositor_output_surface.h"
11 11
12 namespace ui {
13 class CompositorVSyncManager;
14 }
15
12 namespace content { 16 namespace content {
13 class CommandBufferProxyImpl; 17 class CommandBufferProxyImpl;
14 18
15 class OffscreenBrowserCompositorOutputSurface 19 class OffscreenBrowserCompositorOutputSurface
16 : public BrowserCompositorOutputSurface { 20 : public BrowserCompositorOutputSurface {
17 public: 21 public:
18 OffscreenBrowserCompositorOutputSurface( 22 OffscreenBrowserCompositorOutputSurface(
19 const scoped_refptr<ContextProviderCommandBuffer>& context, 23 const scoped_refptr<ContextProviderCommandBuffer>& context,
24 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
20 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 25 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
21 overlay_candidate_validator); 26 overlay_candidate_validator);
22 27
23 ~OffscreenBrowserCompositorOutputSurface() override; 28 ~OffscreenBrowserCompositorOutputSurface() override;
24 29
25 protected: 30 protected:
26 // cc::OutputSurface: 31 // cc::OutputSurface:
27 void EnsureBackbuffer() override; 32 void EnsureBackbuffer() override;
28 void DiscardBackbuffer() override; 33 void DiscardBackbuffer() override;
29 void Reshape(const gfx::Size& size, float scale_factor) override; 34 void Reshape(const gfx::Size& size, float scale_factor) override;
(...skipping 13 matching lines...) Expand all
43 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 48 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
44 weak_ptr_factory_; 49 weak_ptr_factory_;
45 50
46 private: 51 private:
47 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 52 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
48 }; 53 };
49 54
50 } // namespace content 55 } // namespace content
51 56
52 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 57 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698