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

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

Issue 1811113004: Store recording invalidations in DisplayListRecordingSource, save them via Update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
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 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1872 } 1872 }
1873 1873
1874 void LayerImpl::SetForceRenderSurface(bool force_render_surface) { 1874 void LayerImpl::SetForceRenderSurface(bool force_render_surface) {
1875 if (force_render_surface == force_render_surface_) 1875 if (force_render_surface == force_render_surface_)
1876 return; 1876 return;
1877 1877
1878 force_render_surface_ = force_render_surface; 1878 force_render_surface_ = force_render_surface;
1879 NoteLayerPropertyChanged(); 1879 NoteLayerPropertyChanged();
1880 } 1880 }
1881 1881
1882 Region LayerImpl::GetInvalidationRegion() { 1882 Region LayerImpl::GetInvalidationRegionForDebugging() {
1883 return Region(update_rect_); 1883 return Region(update_rect_);
1884 } 1884 }
1885 1885
1886 gfx::Rect LayerImpl::GetEnclosingRectInTargetSpace() const { 1886 gfx::Rect LayerImpl::GetEnclosingRectInTargetSpace() const {
1887 return MathUtil::MapEnclosingClippedRect(DrawTransform(), 1887 return MathUtil::MapEnclosingClippedRect(DrawTransform(),
1888 gfx::Rect(bounds())); 1888 gfx::Rect(bounds()));
1889 } 1889 }
1890 1890
1891 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const { 1891 gfx::Rect LayerImpl::GetScaledEnclosingRectInTargetSpace(float scale) const {
1892 gfx::Transform scaled_draw_transform = DrawTransform(); 1892 gfx::Transform scaled_draw_transform = DrawTransform();
(...skipping 23 matching lines...) Expand all
1916 .layer_transforms_should_scale_layer_contents) { 1916 .layer_transforms_should_scale_layer_contents) {
1917 return default_scale; 1917 return default_scale;
1918 } 1918 }
1919 1919
1920 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( 1920 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents(
1921 DrawTransform(), default_scale); 1921 DrawTransform(), default_scale);
1922 return std::max(transform_scales.x(), transform_scales.y()); 1922 return std::max(transform_scales.x(), transform_scales.y());
1923 } 1923 }
1924 1924
1925 } // namespace cc 1925 } // 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