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

Unified Diff: cc/layers/layer_impl.cc

Issue 271533011: cc: Move tiling management out of draw properties calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PictureImageLayerImpl unittests updated. 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 708271ac3734da373d792162c3734a214e473859..68ba049154d251da2761db879982d6754fffc353 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -253,6 +253,20 @@ void LayerImpl::PopulateSharedQuadState(SharedQuadState* state) const {
blend_mode_);
}
+void LayerImpl::PopulateSharedQuadStateWithOverrides(
+ SharedQuadState* state,
+ gfx::Transform target_space_transform,
+ gfx::Size content_bounds,
+ gfx::Rect visible_content_rect) const {
+ state->SetAll(target_space_transform,
+ content_bounds,
+ visible_content_rect,
+ draw_properties_.clip_rect,
+ draw_properties_.is_clipped,
+ draw_properties_.opacity,
+ blend_mode_);
+}
+
bool LayerImpl::WillDraw(DrawMode draw_mode,
ResourceProvider* resource_provider) {
// WillDraw/DidDraw must be matched.

Powered by Google App Engine
This is Rietveld 408576698