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

Side by Side Diff: cc/test/fake_output_surface.h

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mynits Created 8 years 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 2012 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_TEST_FAKE_OUTPUT_SURFACE_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_
7
8 #include <public/WebGraphicsContext3D.h>
jamesr 2012/12/04 07:06:51 "third_party/WebKit/...." and sort with the rest o
danakj 2012/12/04 18:15:34 k, and added to DEPS
9
10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "cc/output_surface.h"
13 #include "cc/test/fake_software_output_device.h"
14
15 namespace cc {
16
17 class FakeOutputSurface : public OutputSurface {
18 public:
19 virtual ~FakeOutputSurface();
20
21 static inline scoped_ptr<FakeOutputSurface> Create(scoped_ptr<WebKit::WebGraph icsContext3D> context3d) {
jamesr 2012/12/04 07:06:51 80col
22 return make_scoped_ptr(new FakeOutputSurface(context3d.Pass()));
23 }
24
25 static inline scoped_ptr<FakeOutputSurface> CreateSoftware(scoped_ptr<Software OutputDevice> software_device) {
jamesr 2012/12/04 07:06:51 guess what
26 return make_scoped_ptr(new FakeOutputSurface(software_device.Pass()));
27 }
28
29 virtual bool BindToClient(OutputSurfaceClient* client) OVERRIDE;
30
31 virtual const struct Capabilities& Capabilities() const OVERRIDE;
32
33 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE;
34 virtual SoftwareOutputDevice* SoftwareDevice() const OVERRIDE;
35
36 virtual void SendFrameToParentCompositor(const CompositorFrame&) OVERRIDE;
37
38 private:
39 explicit FakeOutputSurface(scoped_ptr<WebKit::WebGraphicsContext3D> context3d) ;
jamesr 2012/12/04 07:06:51 1 char over :(
40 explicit FakeOutputSurface(scoped_ptr<SoftwareOutputDevice> softwareDevice);
41
42 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
43 scoped_ptr<SoftwareOutputDevice> software_device_;
44 struct Capabilities capabilities_;
45 OutputSurfaceClient* client_;
46 };
47
48 } // namespace cc
49
50 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698