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

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

Issue 1931213002: display_compositor: Move CompositorOverlayCandidateValidator from content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.04.28_dc-overlay-candidate-validator
Patch Set: . Created 4 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 class ReflectorTexture; 24 class ReflectorTexture;
25 25
26 class OffscreenBrowserCompositorOutputSurface 26 class OffscreenBrowserCompositorOutputSurface
27 : public BrowserCompositorOutputSurface { 27 : public BrowserCompositorOutputSurface {
28 public: 28 public:
29 OffscreenBrowserCompositorOutputSurface( 29 OffscreenBrowserCompositorOutputSurface(
30 const scoped_refptr<ContextProviderCommandBuffer>& context, 30 const scoped_refptr<ContextProviderCommandBuffer>& context,
31 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, 31 const scoped_refptr<ContextProviderCommandBuffer>& worker_context,
32 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 32 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
33 base::SingleThreadTaskRunner* task_runner, 33 base::SingleThreadTaskRunner* task_runner,
34 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> 34 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
35 overlay_candidate_validator); 35 overlay_candidate_validator);
36 36
37 ~OffscreenBrowserCompositorOutputSurface() override; 37 ~OffscreenBrowserCompositorOutputSurface() override;
38 38
39 protected: 39 protected:
40 // cc::OutputSurface: 40 // cc::OutputSurface:
41 void EnsureBackbuffer() override; 41 void EnsureBackbuffer() override;
42 void DiscardBackbuffer() override; 42 void DiscardBackbuffer() override;
43 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override; 43 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override;
44 void BindFramebuffer() override; 44 void BindFramebuffer() override;
(...skipping 17 matching lines...) Expand all
62 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 62 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
63 weak_ptr_factory_; 63 weak_ptr_factory_;
64 64
65 private: 65 private:
66 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 66 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
67 }; 67 };
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 71 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698