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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 1812733003: Store recording invalidations in DisplayListRecordingSource, save them via Update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/layers/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 } 1577 }
1578 1578
1579 void LayerImpl::SetForceRenderSurface(bool force_render_surface) { 1579 void LayerImpl::SetForceRenderSurface(bool force_render_surface) {
1580 if (force_render_surface == force_render_surface_) 1580 if (force_render_surface == force_render_surface_)
1581 return; 1581 return;
1582 1582
1583 force_render_surface_ = force_render_surface; 1583 force_render_surface_ = force_render_surface;
1584 NoteLayerPropertyChanged(); 1584 NoteLayerPropertyChanged();
1585 } 1585 }
1586 1586
1587 Region LayerImpl::GetInvalidationRegion() { 1587 Region LayerImpl::GetInvalidationRegionForDebugging() {
1588 return Region(update_rect_); 1588 return Region(update_rect_);
1589 } 1589 }
1590 1590
1591 gfx::Rect LayerImpl::GetEnclosingRectInTargetSpace() const { 1591 gfx::Rect LayerImpl::GetEnclosingRectInTargetSpace() const {
1592 return MathUtil::MapEnclosingClippedRect(DrawTransform(), 1592 return MathUtil::MapEnclosingClippedRect(DrawTransform(),
1593 gfx::Rect(bounds())); 1593 gfx::Rect(bounds()));
1594 } 1594 }
1595 1595
1596 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const { 1596 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const {
1597 gfx::Transform scaled_draw_transform = DrawTransform(); 1597 gfx::Transform scaled_draw_transform = DrawTransform();
(...skipping 21 matching lines...) Expand all
1619 .layer_transforms_should_scale_layer_contents) { 1619 .layer_transforms_should_scale_layer_contents) {
1620 return default_scale; 1620 return default_scale;
1621 } 1621 }
1622 1622
1623 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( 1623 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents(
1624 DrawTransform(), default_scale); 1624 DrawTransform(), default_scale);
1625 return std::max(transform_scales.x(), transform_scales.y()); 1625 return std::max(transform_scales.x(), transform_scales.y());
1626 } 1626 }
1627 1627
1628 } // namespace cc 1628 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698