| 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/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 DCHECK(isMainThread()); | 59 DCHECK(isMainThread()); |
| 60 } | 60 } |
| 61 | 61 |
| 62 ThreadProxy::~ThreadProxy() | 62 ThreadProxy::~ThreadProxy() |
| 63 { | 63 { |
| 64 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy"); | 64 TRACE_EVENT0("cc", "ThreadProxy::~ThreadProxy"); |
| 65 DCHECK(isMainThread()); | 65 DCHECK(isMainThread()); |
| 66 DCHECK(!m_started); | 66 DCHECK(!m_started); |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool ThreadProxy::compositeAndReadback(void *pixels, const IntRect& rect) | 69 bool ThreadProxy::compositeAndReadback(void *pixels, const gfx::Rect& rect) |
| 70 { | 70 { |
| 71 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback"); | 71 TRACE_EVENT0("cc", "ThreadPRoxy::compositeAndReadback"); |
| 72 DCHECK(isMainThread()); | 72 DCHECK(isMainThread()); |
| 73 DCHECK(m_layerTreeHost); | 73 DCHECK(m_layerTreeHost); |
| 74 DCHECK(!m_deferCommits); | 74 DCHECK(!m_deferCommits); |
| 75 | 75 |
| 76 if (!m_layerTreeHost->initializeRendererIfNeeded()) { | 76 if (!m_layerTreeHost->initializeRendererIfNeeded()) { |
| 77 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized"); | 77 TRACE_EVENT0("cc", "compositeAndReadback_EarlyOut_LR_Uninitialized"); |
| 78 return false; | 78 return false; |
| 79 } | 79 } |
| (...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 | 981 |
| 982 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() | 982 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() |
| 983 { | 983 { |
| 984 } | 984 } |
| 985 | 985 |
| 986 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() | 986 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() |
| 987 { | 987 { |
| 988 } | 988 } |
| 989 | 989 |
| 990 } // namespace cc | 990 } // namespace cc |
| OLD | NEW |