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

Side by Side Diff: cc/layer_impl.cc

Issue 11450019: Finish the rename from cc::GraphicsContext to cc::OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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
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_impl.h" 5 #include "cc/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "cc/debug_border_draw_quad.h" 9 #include "cc/debug_border_draw_quad.h"
10 #include "cc/debug_colors.h" 10 #include "cc/debug_colors.h"
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 noteLayerPropertyChangedForSubtree(); 673 noteLayerPropertyChangedForSubtree();
674 } 674 }
675 675
676 Region LayerImpl::visibleContentOpaqueRegion() const 676 Region LayerImpl::visibleContentOpaqueRegion() const
677 { 677 {
678 if (contentsOpaque()) 678 if (contentsOpaque())
679 return visibleContentRect(); 679 return visibleContentRect();
680 return Region(); 680 return Region();
681 } 681 }
682 682
683 void LayerImpl::didLoseContext() 683 void LayerImpl::didLoseOutputSurface()
684 { 684 {
685 } 685 }
686 686
687 void LayerImpl::setMaxScrollOffset(gfx::Vector2d maxScrollOffset) 687 void LayerImpl::setMaxScrollOffset(gfx::Vector2d maxScrollOffset)
688 { 688 {
689 m_maxScrollOffset = maxScrollOffset; 689 m_maxScrollOffset = maxScrollOffset;
690 690
691 if (!m_scrollbarAnimationController) 691 if (!m_scrollbarAnimationController)
692 return; 692 return;
693 m_scrollbarAnimationController->updateScrollOffset(this); 693 m_scrollbarAnimationController->updateScrollOffset(this);
(...skipping 29 matching lines...) Expand all
723 723
724 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) 724 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer)
725 { 725 {
726 if (!m_scrollbarAnimationController) 726 if (!m_scrollbarAnimationController)
727 m_scrollbarAnimationController = ScrollbarAnimationController::create(th is); 727 m_scrollbarAnimationController = ScrollbarAnimationController::create(th is);
728 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); 728 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer);
729 m_scrollbarAnimationController->updateScrollOffset(this); 729 m_scrollbarAnimationController->updateScrollOffset(this);
730 } 730 }
731 731
732 } // namespace cc 732 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_impl.h ('k') | cc/layer_tree_host.h » ('j') | cc/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698