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/trees/single_thread_proxy.h" | 5 #include "cc/trees/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/base/thread.h" |
10 #include "cc/output/context_provider.h" | 10 #include "cc/output/context_provider.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 PrioritizedResourceManager* contents_texture_manager = | 320 PrioritizedResourceManager* contents_texture_manager = |
321 layer_tree_host_->contents_texture_manager(); | 321 layer_tree_host_->contents_texture_manager(); |
322 layer_tree_host_impl_->SendManagedMemoryStats( | 322 layer_tree_host_impl_->SendManagedMemoryStats( |
323 contents_texture_manager->MemoryVisibleBytes(), | 323 contents_texture_manager->MemoryVisibleBytes(), |
324 contents_texture_manager->MemoryVisibleAndNearbyBytes(), | 324 contents_texture_manager->MemoryVisibleAndNearbyBytes(), |
325 contents_texture_manager->MemoryUseBytes()); | 325 contents_texture_manager->MemoryUseBytes()); |
326 } | 326 } |
327 | 327 |
328 bool SingleThreadProxy::IsInsideDraw() { return inside_draw_; } | 328 bool SingleThreadProxy::IsInsideDraw() { return inside_draw_; } |
329 | 329 |
| 330 void SingleThreadProxy::DidTryInitializeRendererOnImplThread( |
| 331 bool success, |
| 332 scoped_refptr<ContextProvider> offscreen_context_provider) { |
| 333 NOTREACHED() |
| 334 << "This is only used on threaded compositing with impl-side painting"; |
| 335 } |
| 336 |
330 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { | 337 void SingleThreadProxy::DidLoseOutputSurfaceOnImplThread() { |
331 // Cause a commit so we can notice the lost context. | 338 // Cause a commit so we can notice the lost context. |
332 SetNeedsCommitOnImplThread(); | 339 SetNeedsCommitOnImplThread(); |
333 } | 340 } |
334 | 341 |
335 // Called by the legacy scheduling path (e.g. where render_widget does the | 342 // Called by the legacy scheduling path (e.g. where render_widget does the |
336 // scheduling) | 343 // scheduling) |
337 void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) { | 344 void SingleThreadProxy::CompositeImmediately(base::TimeTicks frame_begin_time) { |
338 gfx::Rect device_viewport_damage_rect; | 345 gfx::Rect device_viewport_damage_rect; |
339 | 346 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 | 490 |
484 bool SingleThreadProxy::CommitPendingForTesting() { return false; } | 491 bool SingleThreadProxy::CommitPendingForTesting() { return false; } |
485 | 492 |
486 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { | 493 skia::RefPtr<SkPicture> SingleThreadProxy::CapturePicture() { |
487 // Impl-side painting only. | 494 // Impl-side painting only. |
488 NOTREACHED(); | 495 NOTREACHED(); |
489 return skia::RefPtr<SkPicture>(); | 496 return skia::RefPtr<SkPicture>(); |
490 } | 497 } |
491 | 498 |
492 } // namespace cc | 499 } // namespace cc |
OLD | NEW |