diff options
Diffstat (limited to 'cc/prioritized_texture.cc')
-rw-r--r-- | cc/prioritized_texture.cc | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/cc/prioritized_texture.cc b/cc/prioritized_texture.cc index e2fee50..1c4428a 100644 --- a/cc/prioritized_texture.cc +++ b/cc/prioritized_texture.cc @@ -153,7 +153,7 @@ PrioritizedTexture::Backing::~Backing() void PrioritizedTexture::Backing::deleteResource(ResourceProvider* resourceProvider) { - DCHECK(!proxy() || proxy()->isImplThread()); + DCHECK(Proxy::isImplThread()); DCHECK(!m_resourceHasBeenDeleted); #ifndef NDEBUG DCHECK(resourceProvider == m_resourceProvider); @@ -166,19 +166,19 @@ void PrioritizedTexture::Backing::deleteResource(ResourceProvider* resourceProvi bool PrioritizedTexture::Backing::resourceHasBeenDeleted() const { - DCHECK(!proxy() || proxy()->isImplThread()); + DCHECK(Proxy::isImplThread()); return m_resourceHasBeenDeleted; } bool PrioritizedTexture::Backing::canBeRecycled() const { - DCHECK(!proxy() || proxy()->isImplThread()); + DCHECK(Proxy::isImplThread()); return !m_wasAbovePriorityCutoffAtLastPriorityUpdate && !m_inDrawingImplTree; } void PrioritizedTexture::Backing::updatePriority() { - DCHECK(!proxy() || proxy()->isImplThread() && proxy()->isMainThreadBlocked()); + DCHECK(Proxy::isImplThread() && Proxy::isMainThreadBlocked()); if (m_owner) { m_priorityAtLastPriorityUpdate = m_owner->requestPriority(); m_wasAbovePriorityCutoffAtLastPriorityUpdate = m_owner->isAbovePriorityCutoff(); @@ -190,7 +190,7 @@ void PrioritizedTexture::Backing::updatePriority() void PrioritizedTexture::Backing::updateInDrawingImplTree() { - DCHECK(!proxy() || proxy()->isImplThread() && proxy()->isMainThreadBlocked()); + DCHECK(Proxy::isImplThread() && Proxy::isMainThreadBlocked()); m_inDrawingImplTree = !!owner(); if (!m_inDrawingImplTree) DCHECK(m_priorityAtLastPriorityUpdate == PriorityCalculator::lowestPriority()); @@ -203,11 +203,4 @@ void PrioritizedTexture::returnBackingTexture() m_manager->returnBackingTexture(this); } -const Proxy* PrioritizedTexture::Backing::proxy() const -{ - if (!m_owner || !m_owner->textureManager()) - return 0; - return m_owner->textureManager()->proxyForDebug(); -} - } // namespace cc |