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

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

Issue 307693005: Add use-surfaces command-line flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_COMPOSITOR_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
7
8 #include "cc/output/output_surface.h"
9
10 namespace cc {
11 class Display;
12 class SurfaceManager;
13 }
14
15 namespace content {
16
17 // This class is maps a compositor OutputSurface to the surface system's Display
18 // concept, allowing a compositor client to submit frames for a native root
19 // window or physical display.
20 class SurfaceDisplayOutputSurface : public cc::OutputSurface {
21 public:
22 // The underlying cc::Display and cc::SurfaceManager must outlive this class.
23 SurfaceDisplayOutputSurface(
24 cc::Display* display,
25 cc::SurfaceManager* surface_manager,
26 const scoped_refptr<cc::ContextProvider>& context_provider,
27 scoped_ptr<cc::SoftwareOutputDevice> software_device);
28 virtual ~SurfaceDisplayOutputSurface();
29
30 // cc::OutputSurface implementation.
31 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
32
33 private:
34 cc::Display* display_;
35 cc::SurfaceManager* surface_manager_;
36
37 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_DISPLAY_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/onscreen_display_client.cc ('k') | content/browser/compositor/surface_display_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698