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

Side by Side Diff: cc/output_surface_impl.h

Issue 11967033: [CLOSED] In-browser software compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the lack SkCanvas::clear scissoring. Created 7 years, 11 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
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output_surface_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 CC_OUTPUT_SURFACE_IMPL_H_
6 #define CC_OUTPUT_SURFACE_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/cc_export.h"
10 #include "cc/output_surface.h"
11 #include "cc/software_output_device.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
13
14 namespace cc {
15
16 class CC_EXPORT OutputSurfaceImpl : public OutputSurface {
17 public:
18 explicit OutputSurfaceImpl(
19 scoped_ptr<WebKit::WebGraphicsContext3D> context3d);
20
21 explicit OutputSurfaceImpl(
22 scoped_ptr<cc::SoftwareOutputDevice> software_device);
23
24 OutputSurfaceImpl(
25 scoped_ptr<WebKit::WebGraphicsContext3D> context3d,
26 scoped_ptr<cc::SoftwareOutputDevice> software_device);
27
28 virtual ~OutputSurfaceImpl();
29
30 virtual bool BindToClient(cc::OutputSurfaceClient*) OVERRIDE;
31
32 virtual const struct Capabilities& Capabilities() const OVERRIDE;
33
34 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE;
35 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE;
36
37 virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE;
38
39 protected:
40 OutputSurfaceClient* client_;
41 struct cc::OutputSurface::Capabilities capabilities_;
42 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
43 scoped_ptr<cc::SoftwareOutputDevice> software_device_;
44 };
45
46 } // namespace cc
47
48 #endif // CC_OUTPUT_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/output_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698