| 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/context_provider.h" | 9 #include "cc/context_provider.h" |
| 10 #include "cc/draw_quad.h" | 10 #include "cc/draw_quad.h" |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 TRACE_EVENT0("cc", "SingleThreadProxy::stop"); | 262 TRACE_EVENT0("cc", "SingleThreadProxy::stop"); |
| 263 DCHECK(Proxy::IsMainThread()); | 263 DCHECK(Proxy::IsMainThread()); |
| 264 { | 264 { |
| 265 DebugScopedSetMainThreadBlocked mainThreadBlocked(this); | 265 DebugScopedSetMainThreadBlocked mainThreadBlocked(this); |
| 266 DebugScopedSetImplThread impl(this); | 266 DebugScopedSetImplThread impl(this); |
| 267 | 267 |
| 268 layer_tree_host_->deleteContentsTexturesOnImplThread( | 268 layer_tree_host_->deleteContentsTexturesOnImplThread( |
| 269 layer_tree_host_impl_->resourceProvider()); | 269 layer_tree_host_impl_->resourceProvider()); |
| 270 layer_tree_host_impl_.reset(); | 270 layer_tree_host_impl_.reset(); |
| 271 } | 271 } |
| 272 layer_tree_host_ = 0; | 272 layer_tree_host_ = NULL; |
| 273 } | 273 } |
| 274 | 274 |
| 275 void SingleThreadProxy::setNeedsRedrawOnImplThread() { | 275 void SingleThreadProxy::setNeedsRedrawOnImplThread() { |
| 276 layer_tree_host_->scheduleComposite(); | 276 layer_tree_host_->scheduleComposite(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 void SingleThreadProxy::didUploadVisibleHighResolutionTileOnImplThread() { | 279 void SingleThreadProxy::didUploadVisibleHighResolutionTileOnImplThread() { |
| 280 // Impl-side painting only. | 280 // Impl-side painting only. |
| 281 NOTREACHED(); | 281 NOTREACHED(); |
| 282 } | 282 } |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 | 449 |
| 450 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 450 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
| 451 | 451 |
| 452 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { | 452 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { |
| 453 // Impl-side painting only. | 453 // Impl-side painting only. |
| 454 NOTREACHED(); | 454 NOTREACHED(); |
| 455 return skia::RefPtr<SkPicture>(); | 455 return skia::RefPtr<SkPicture>(); |
| 456 } | 456 } |
| 457 | 457 |
| 458 } // namespace cc | 458 } // namespace cc |
| OLD | NEW |