| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "cc/thread_proxy.h" | 7 #include "cc/thread_proxy.h" |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "cc/delay_based_time_source.h" | 10 #include "cc/delay_based_time_source.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 DCHECK(isMainThread()); | 58 DCHECK(isMainThread()); |
| 59 } | 59 } |
| 60 | 60 |
| 61 ThreadProxy::~ThreadProxy() | 61 ThreadProxy::~ThreadProxy() |
| 62 { | 62 { |
| 63 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy"); | 63 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy"); |
| 64 DCHECK(isMainThread()); | 64 DCHECK(isMainThread()); |
| 65 DCHECK(!m_started); | 65 DCHECK(!m_started); |
| 66 } | 66 } |
| 67 | 67 |
| 68 bool ThreadProxy::compositeAndReadback(void *pixels, const IntRect& rect) | 68 bool ThreadProxy::compositeAndReadback(void *pixels, const gfx::Rect& rect) |
| 69 { | 69 { |
| 70 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback"); | 70 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback"); |
| 71 DCHECK(isMainThread()); | 71 DCHECK(isMainThread()); |
| 72 DCHECK(m_layerTreeHost); | 72 DCHECK(m_layerTreeHost); |
| 73 | 73 |
| 74 if (!m_layerTreeHost->initializeRendererIfNeeded()) { | 74 if (!m_layerTreeHost->initializeRendererIfNeeded()) { |
| 75 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized"); | 75 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized"); |
| 76 return false; | 76 return false; |
| 77 } | 77 } |
| 78 | 78 |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() | 963 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() |
| 964 : monotonicFrameBeginTime(0) | 964 : monotonicFrameBeginTime(0) |
| 965 { | 965 { |
| 966 } | 966 } |
| 967 | 967 |
| 968 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() | 968 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() |
| 969 { | 969 { |
| 970 } | 970 } |
| 971 | 971 |
| 972 } // namespace cc | 972 } // namespace cc |
| OLD | NEW |