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

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

Issue 250803013: Don't clear render surfaces unnecessarily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make the bots happy. Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/render_surface.h" 5 #include "cc/layers/render_surface.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "ui/gfx/transform.h" 9 #include "ui/gfx/transform.h"
10 10
(...skipping 22 matching lines...) Expand all
33 33
34 gfx::RectF RenderSurface::DrawableContentRect() const { 34 gfx::RectF RenderSurface::DrawableContentRect() const {
35 gfx::RectF drawable_content_rect = 35 gfx::RectF drawable_content_rect =
36 MathUtil::MapClippedRect(draw_transform_, content_rect_); 36 MathUtil::MapClippedRect(draw_transform_, content_rect_);
37 if (owning_layer_->has_replica()) 37 if (owning_layer_->has_replica())
38 drawable_content_rect.Union( 38 drawable_content_rect.Union(
39 MathUtil::MapClippedRect(replica_draw_transform_, content_rect_)); 39 MathUtil::MapClippedRect(replica_draw_transform_, content_rect_));
40 return drawable_content_rect; 40 return drawable_content_rect;
41 } 41 }
42 42
43 void RenderSurface::ClearLayerLists() {
44 layer_list_.clear();
45 }
46
43 } // namespace cc 47 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698