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

Side by Side Diff: cc/test/pixel_test_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: forlanding6 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
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 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 CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_ 5 #ifndef CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
6 #define CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_ 6 #define CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/output_surface.h" 9 #include "cc/output_surface.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class PixelTestOutputSurface : public OutputSurface { 13 class PixelTestOutputSurface : public OutputSurface {
14 public: 14 public:
15 static scoped_ptr<PixelTestOutputSurface> create() { 15 static scoped_ptr<PixelTestOutputSurface> create() {
16 return make_scoped_ptr(new PixelTestOutputSurface); 16 return make_scoped_ptr(new PixelTestOutputSurface);
17 } 17 }
18 18
19 virtual ~PixelTestOutputSurface(); 19 virtual ~PixelTestOutputSurface();
20 20
21 // OutputSurface overrides. 21 // OutputSurface overrides.
22 virtual bool bindToClient(WebKit::WebCompositorOutputSurfaceClient*) OVERRIDE; 22 virtual bool BindToClient(OutputSurfaceClient*) OVERRIDE;
23 virtual const WebKit::WebCompositorOutputSurface::Capabilities& capabilities() const OVERRIDE; 23 virtual const struct OutputSurface::Capabilities& Capabilities() const
24 virtual WebKit::WebGraphicsContext3D* context3D() const OVERRIDE; 24 OVERRIDE;
25 virtual void sendFrameToParentCompositor( 25 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE;
26 const WebKit::WebCompositorFrame&) OVERRIDE { } 26 virtual SoftwareOutputDevice* SoftwareDevice() const OVERRIDE;
27 virtual void SendFrameToParentCompositor(const CompositorFrame&) OVERRIDE {}
27 28
28 private: 29 private:
29 PixelTestOutputSurface(); 30 PixelTestOutputSurface();
30 31
31 scoped_ptr<WebKit::WebGraphicsContext3D> context_; 32 scoped_ptr<WebKit::WebGraphicsContext3D> context_;
32 }; 33 };
33 34
34 } // namespace cc 35 } // namespace cc
35 36
36 37
37 #endif // CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_ 38 #endif // CC_TEST_PIXEL_TEST_GRAPHICS_CONTEXT_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test_common.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698