Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11606012: cc: Unify context losing machinery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reboot Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/layer_tree_host_impl.h" 5 #include "cc/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 } 836 }
837 837
838 void LayerTreeHostImpl::finishAllRendering() 838 void LayerTreeHostImpl::finishAllRendering()
839 { 839 {
840 if (m_renderer) 840 if (m_renderer)
841 m_renderer->finish(); 841 m_renderer->finish();
842 } 842 }
843 843
844 bool LayerTreeHostImpl::isContextLost() 844 bool LayerTreeHostImpl::isContextLost()
845 { 845 {
846 DCHECK(m_proxy->isImplThread());
846 return m_renderer && m_renderer->isContextLost(); 847 return m_renderer && m_renderer->isContextLost();
847 } 848 }
848 849
849 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const 850 const RendererCapabilities& LayerTreeHostImpl::rendererCapabilities() const
850 { 851 {
851 return m_renderer->capabilities(); 852 return m_renderer->capabilities();
852 } 853 }
853 854
854 bool LayerTreeHostImpl::swapBuffers() 855 bool LayerTreeHostImpl::swapBuffers()
855 { 856 {
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1672 LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer()); 1673 LayerImpl* layer = getNonCompositedContentLayerRecursive(tree->RootLayer());
1673 return layer ? layer->getPicture() : skia::RefPtr<SkPicture>(); 1674 return layer ? layer->getPicture() : skia::RefPtr<SkPicture>();
1674 } 1675 }
1675 1676
1676 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime) 1677 void LayerTreeHostImpl::savePaintTime(const base::TimeDelta& totalPaintTime)
1677 { 1678 {
1678 m_paintTimeCounter->SavePaintTime(totalPaintTime); 1679 m_paintTimeCounter->SavePaintTime(totalPaintTime);
1679 } 1680 }
1680 1681
1681 } // namespace cc 1682 } // namespace cc
OLDNEW
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698