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

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

Issue 1812733004: Store recording invalidations in DisplayListRecordingSource, save them via Update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
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 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 } 1757 }
1758 1758
1759 void LayerImpl::SetForceRenderSurface(bool force_render_surface) { 1759 void LayerImpl::SetForceRenderSurface(bool force_render_surface) {
1760 if (force_render_surface == force_render_surface_) 1760 if (force_render_surface == force_render_surface_)
1761 return; 1761 return;
1762 1762
1763 force_render_surface_ = force_render_surface; 1763 force_render_surface_ = force_render_surface;
1764 NoteLayerPropertyChanged(); 1764 NoteLayerPropertyChanged();
1765 } 1765 }
1766 1766
1767 Region LayerImpl::GetInvalidationRegion() { 1767 Region LayerImpl::GetInvalidationRegionForDebugging() {
1768 return Region(update_rect_); 1768 return Region(update_rect_);
1769 } 1769 }
1770 1770
1771 gfx::Rect LayerImpl::GetEnclosingRectInTargetSpace() const { 1771 gfx::Rect LayerImpl::GetEnclosingRectInTargetSpace() const {
1772 return MathUtil::MapEnclosingClippedRect(DrawTransform(), 1772 return MathUtil::MapEnclosingClippedRect(DrawTransform(),
1773 gfx::Rect(bounds())); 1773 gfx::Rect(bounds()));
1774 } 1774 }
1775 1775
1776 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const { 1776 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const {
1777 gfx::Transform scaled_draw_transform = DrawTransform(); 1777 gfx::Transform scaled_draw_transform = DrawTransform();
(...skipping 21 matching lines...) Expand all
1799 .layer_transforms_should_scale_layer_contents) { 1799 .layer_transforms_should_scale_layer_contents) {
1800 return default_scale; 1800 return default_scale;
1801 } 1801 }
1802 1802
1803 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( 1803 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents(
1804 DrawTransform(), default_scale); 1804 DrawTransform(), default_scale);
1805 return std::max(transform_scales.x(), transform_scales.y()); 1805 return std::max(transform_scales.x(), transform_scales.y());
1806 } 1806 }
1807 1807
1808 } // namespace cc 1808 } // 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