diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-12 10:17:34 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-12 10:17:34 +0000 |
commit | 7aba66652cf8fe7e131d4638d00b574fc05526ee (patch) | |
tree | 0a1012dc37172ff9b276679c55d77c38c111f37a /cc/contents_scaling_layer.cc | |
parent | b2720f159750fd54728b7ec0b9da8baed9ec4a83 (diff) | |
download | chromium_src-7aba66652cf8fe7e131d4638d00b574fc05526ee.zip chromium_src-7aba66652cf8fe7e131d4638d00b574fc05526ee.tar.gz chromium_src-7aba66652cf8fe7e131d4638d00b574fc05526ee.tar.bz2 |
cc: Chromify Layer and LayerImpl classes.
Style-only change. Bring the Layer and LayerImpl classes
into the Chromium style.
R=enne,piman,jamesr
TBR=joth
Review URL: https://chromiumcodereview.appspot.com/12774006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187555 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/contents_scaling_layer.cc')
-rw-r--r-- | cc/contents_scaling_layer.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cc/contents_scaling_layer.cc b/cc/contents_scaling_layer.cc index 7241a53..f91d9c4 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 |