OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/single_thread_proxy.h" | 5 #include "cc/single_thread_proxy.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "cc/base/thread.h" |
9 #include "cc/context_provider.h" | 10 #include "cc/context_provider.h" |
10 #include "cc/draw_quad.h" | 11 #include "cc/draw_quad.h" |
11 #include "cc/layer_tree_host.h" | 12 #include "cc/layer_tree_host.h" |
12 #include "cc/layer_tree_impl.h" | 13 #include "cc/layer_tree_impl.h" |
13 #include "cc/output_surface.h" | 14 #include "cc/output_surface.h" |
14 #include "cc/prioritized_resource_manager.h" | 15 #include "cc/prioritized_resource_manager.h" |
15 #include "cc/resource_update_controller.h" | 16 #include "cc/resource_update_controller.h" |
16 #include "cc/thread.h" | |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
20 scoped_ptr<Proxy> SingleThreadProxy::Create(LayerTreeHost* layer_tree_host) { | 20 scoped_ptr<Proxy> SingleThreadProxy::Create(LayerTreeHost* layer_tree_host) { |
21 return make_scoped_ptr( | 21 return make_scoped_ptr( |
22 new SingleThreadProxy(layer_tree_host)).PassAs<Proxy>(); | 22 new SingleThreadProxy(layer_tree_host)).PassAs<Proxy>(); |
23 } | 23 } |
24 | 24 |
25 SingleThreadProxy::SingleThreadProxy(LayerTreeHost* layer_tree_host) | 25 SingleThreadProxy::SingleThreadProxy(LayerTreeHost* layer_tree_host) |
26 : Proxy(scoped_ptr<Thread>(NULL)), | 26 : Proxy(scoped_ptr<Thread>(NULL)), |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 451 |
452 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 452 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
453 | 453 |
454 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { | 454 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { |
455 // Impl-side painting only. | 455 // Impl-side painting only. |
456 NOTREACHED(); | 456 NOTREACHED(); |
457 return skia::RefPtr<SkPicture>(); | 457 return skia::RefPtr<SkPicture>(); |
458 } | 458 } |
459 | 459 |
460 } // namespace cc | 460 } // namespace cc |
OLD | NEW |