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

Unified Diff: cc/contents_scaling_layer.cc

Issue 12774006: cc: Chromify Layer and LayerImpl classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: MoreAndroidCompilings Created 7 years, 9 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/contents_scaling_layer.h ('k') | cc/contents_scaling_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/contents_scaling_layer.cc
diff --git a/cc/contents_scaling_layer.cc b/cc/contents_scaling_layer.cc
index 7241a531eea1ad901f4c92814122578d0f4cca73..f91d9c4956d7b3e3aa320e82e4f6922361abd0a9 100644
--- a/cc/contents_scaling_layer.cc
+++ b/cc/contents_scaling_layer.cc
@@ -20,7 +20,7 @@ ContentsScalingLayer::ContentsScalingLayer()
ContentsScalingLayer::~ContentsScalingLayer() {
}
-void ContentsScalingLayer::calculateContentsScale(
+void ContentsScalingLayer::CalculateContentsScale(
float ideal_contents_scale,
bool animating_transform_to_screen,
float* contents_scale_x,
@@ -33,18 +33,18 @@ void ContentsScalingLayer::calculateContentsScale(
ideal_contents_scale);
}
-void ContentsScalingLayer::update(
- ResourceUpdateQueue& queue,
+void ContentsScalingLayer::Update(
+ ResourceUpdateQueue* queue,
const OcclusionTracker* occlusion,
RenderingStats* stats) {
- if (drawProperties().contents_scale_x == last_update_contents_scale_x_ &&
- drawProperties().contents_scale_y == last_update_contents_scale_y_)
+ if (draw_properties().contents_scale_x == last_update_contents_scale_x_ &&
+ draw_properties().contents_scale_y == last_update_contents_scale_y_)
return;
- last_update_contents_scale_x_ = drawProperties().contents_scale_x;
- last_update_contents_scale_y_ = drawProperties().contents_scale_y;
+ last_update_contents_scale_x_ = draw_properties().contents_scale_x;
+ last_update_contents_scale_y_ = draw_properties().contents_scale_y;
// Invalidate the whole layer if scale changed.
- setNeedsDisplayRect(gfx::Rect(bounds()));
+ SetNeedsDisplayRect(gfx::Rect(bounds()));
}
} // namespace cc
« no previous file with comments | « cc/contents_scaling_layer.h ('k') | cc/contents_scaling_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698