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

Unified Diff: cc/layers/layer_impl.h

Issue 1491033002: Create RenderSurface on Effect Tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@alwayspt
Patch Set: fix for crash Created 5 years 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
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 04a70ef98251e41db65f7ac015adda121dbd5384..3939b995f3f8354e1c590d207397f985a84bcb91 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -202,7 +202,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// For compatibility with Layer.
bool has_render_surface() const { return !!render_surface(); }
-
+ bool force_render_surface() const { return force_render_surface_; }
void SetNumDescendantsThatDrawContent(int num_descendants);
void SetClipParent(LayerImpl* ancestor);
@@ -386,6 +386,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
void ClearRenderSurfaceLayerList();
void SetHasRenderSurface(bool has_render_surface);
+ void SetForceRenderSurface(bool has_render_surface);
+
RenderSurfaceImpl* render_surface() const { return render_surface_.get(); }
DrawProperties& draw_properties() { return draw_properties_; }
@@ -534,6 +536,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
bool HasPotentiallyRunningTransformAnimation() const;
bool TransformIsAnimatingOnImplOnly() const;
bool HasOnlyTranslationTransforms() const;
+ bool AnimationsPreserveAxisAlignment() const;
void SetTransformAndInvertibility(const gfx::Transform& transform,
bool transform_is_invertible);
bool transform_is_invertible() const { return transform_is_invertible_; }
@@ -873,6 +876,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
scoped_refptr<base::trace_event::ConvertableToTraceFormat> debug_info_;
scoped_ptr<RenderSurfaceImpl> render_surface_;
+ bool force_render_surface_;
+
std::vector<FrameTimingRequest> frame_timing_requests_;
int num_layer_or_descendants_with_copy_request_;
bool frame_timing_requests_dirty_;
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698