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

Unified Diff: cc/layers/render_surface_impl.h

Issue 1902893002: cc: Move calculation of content rect to RenderSurfaceImpl class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@targetid
Patch Set: fix error Created 4 years, 8 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
« no previous file with comments | « no previous file | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl.h
diff --git a/cc/layers/render_surface_impl.h b/cc/layers/render_surface_impl.h
index d73864695eef212754acad6e2b01b7b78f940ed0..488cd5fc578c8cb59d82c4f03680211ec6e83262 100644
--- a/cc/layers/render_surface_impl.h
+++ b/cc/layers/render_surface_impl.h
@@ -117,7 +117,9 @@ class CC_EXPORT RenderSurfaceImpl {
contributes_to_drawn_surface_ = contributes_to_drawn_surface;
}
- void SetContentRect(const gfx::Rect& content_rect);
+ void CalculateContentRectFromAccumulatedContentRect(int max_texture_size);
+ void SetContentRectToViewport();
+ void SetContentRectForTesting(const gfx::Rect& rect);
gfx::Rect content_rect() const { return draw_properties_.content_rect; }
void ClearAccumulatedContentRect();
@@ -167,6 +169,9 @@ class CC_EXPORT RenderSurfaceImpl {
int EffectTreeIndex() const;
private:
+ void SetContentRect(const gfx::Rect& content_rect);
+ gfx::Rect CalculateClippedAccumulatedContentRect();
+
LayerImpl* owning_layer_;
// Container for properties that render surfaces need to compute before they
« no previous file with comments | « no previous file | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698