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

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

Issue 12379055: Changed SoftwareOutputDevice interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
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_FAKE_OUTPUT_SURFACE_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_
7 7
8 #include "cc/compositor_frame.h" 8 #include "cc/compositor_frame.h"
9 #include "cc/output_surface.h" 9 #include "cc/output_surface.h"
10 #include "cc/test/fake_software_output_device.h" 10 #include "cc/software_output_device.h"
11 #include "cc/test/test_web_graphics_context_3d.h" 11 #include "cc/test/test_web_graphics_context_3d.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class FakeOutputSurface : public OutputSurface { 16 class FakeOutputSurface : public OutputSurface {
17 public: 17 public:
18 virtual ~FakeOutputSurface(); 18 virtual ~FakeOutputSurface();
19 19
20 static scoped_ptr<FakeOutputSurface> Create3d( 20 static scoped_ptr<FakeOutputSurface> Create3d(
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return FakeOutputSurface::Create3d( 79 return FakeOutputSurface::Create3d(
80 TestWebGraphicsContext3D::Create( 80 TestWebGraphicsContext3D::Create(
81 WebKit::WebGraphicsContext3D::Attributes()) 81 WebKit::WebGraphicsContext3D::Attributes())
82 .PassAs<WebKit::WebGraphicsContext3D>()) 82 .PassAs<WebKit::WebGraphicsContext3D>())
83 .PassAs<cc::OutputSurface>(); 83 .PassAs<cc::OutputSurface>();
84 } 84 }
85 85
86 } // namespace cc 86 } // namespace cc
87 87
88 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 88 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698