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

Unified Diff: cc/trees/tree_synchronizer.cc

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/browser/android/content_startup_flags.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/tree_synchronizer.cc
diff --git a/cc/trees/tree_synchronizer.cc b/cc/trees/tree_synchronizer.cc
index cf1b382f702aeba70ee847b351dcc4f661bedced..48a9d5bd966e35bb9ca6e8dafc797efde999d537 100644
--- a/cc/trees/tree_synchronizer.cc
+++ b/cc/trees/tree_synchronizer.cc
@@ -12,8 +12,8 @@
#include "cc/input/scrollbar.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_impl.h"
-#include "cc/layers/painted_scrollbar_layer.h"
-#include "cc/layers/painted_scrollbar_layer_impl.h"
+#include "cc/layers/scrollbar_layer_impl_base.h"
+#include "cc/layers/scrollbar_layer_interface.h"
namespace cc {
@@ -155,19 +155,19 @@ void UpdateScrollbarLayerPointersRecursiveInternal(
return;
RawPtrLayerImplMap::const_iterator iter =
- new_layers->find(scrollbar_layer->id());
- PaintedScrollbarLayerImpl* scrollbar_layer_impl =
+ new_layers->find(layer->id());
+ ScrollbarLayerImplBase* scrollbar_layer_impl =
iter != new_layers->end()
- ? static_cast<PaintedScrollbarLayerImpl*>(iter->second)
+ ? static_cast<ScrollbarLayerImplBase*>(iter->second)
: NULL;
- iter = new_layers->find(scrollbar_layer->scroll_layer_id());
+ iter = new_layers->find(scrollbar_layer->ScrollLayerId());
LayerImpl* scroll_layer_impl =
iter != new_layers->end() ? iter->second : NULL;
DCHECK(scrollbar_layer_impl);
DCHECK(scroll_layer_impl);
- if (scrollbar_layer->Orientation() == HORIZONTAL)
+ if (scrollbar_layer->orientation() == HORIZONTAL)
scroll_layer_impl->SetHorizontalScrollbarLayer(scrollbar_layer_impl);
else
scroll_layer_impl->SetVerticalScrollbarLayer(scrollbar_layer_impl);
@@ -175,7 +175,7 @@ void UpdateScrollbarLayerPointersRecursiveInternal(
void UpdateScrollbarLayerPointersRecursive(const RawPtrLayerImplMap* new_layers,
Layer* layer) {
- UpdateScrollbarLayerPointersRecursiveInternal<Layer, PaintedScrollbarLayer>(
+ UpdateScrollbarLayerPointersRecursiveInternal<Layer, ScrollbarLayerInterface>(
new_layers, layer);
}
@@ -183,7 +183,7 @@ void UpdateScrollbarLayerPointersRecursive(const RawPtrLayerImplMap* new_layers,
LayerImpl* layer) {
UpdateScrollbarLayerPointersRecursiveInternal<
LayerImpl,
- PaintedScrollbarLayerImpl>(new_layers, layer);
+ ScrollbarLayerImplBase>(new_layers, layer);
}
// static
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | content/browser/android/content_startup_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698