OLD | NEW |
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 #include "cc/test/fake_output_surface.h" | 5 #include "cc/test/fake_output_surface.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "cc/output/compositor_frame_ack.h" | 9 #include "cc/output/compositor_frame_ack.h" |
10 #include "cc/output/output_surface_client.h" | 10 #include "cc/output/output_surface_client.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 FakeOutputSurface::FakeOutputSurface( | 15 FakeOutputSurface::FakeOutputSurface( |
16 scoped_ptr<WebKit::WebGraphicsContext3D> context3d, | 16 scoped_ptr<WebKit::WebGraphicsContext3D> context3d, |
17 bool delegated_rendering) | 17 bool delegated_rendering) |
18 : OutputSurface(context3d.Pass()), | 18 : OutputSurface(context3d.Pass()), |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 } | 92 } |
93 | 93 |
94 bool FakeOutputSurface::SetAndInitializeContext3D( | 94 bool FakeOutputSurface::SetAndInitializeContext3D( |
95 scoped_ptr<WebKit::WebGraphicsContext3D> context3d) { | 95 scoped_ptr<WebKit::WebGraphicsContext3D> context3d) { |
96 context3d_.reset(); | 96 context3d_.reset(); |
97 return InitializeAndSetContext3D(context3d.Pass(), | 97 return InitializeAndSetContext3D(context3d.Pass(), |
98 scoped_refptr<ContextProvider>()); | 98 scoped_refptr<ContextProvider>()); |
99 } | 99 } |
100 | 100 |
101 } // namespace cc | 101 } // namespace cc |
OLD | NEW |