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

Unified Diff: chrome/browser/android/compositor/layer/thumbnail_layer.h

Issue 2499863002: Simplify content_layer attachment and viewporting logic. (Closed)
Patch Set: Fix clang error Created 4 years, 1 month 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: chrome/browser/android/compositor/layer/thumbnail_layer.h
diff --git a/chrome/browser/android/compositor/layer/thumbnail_layer.h b/chrome/browser/android/compositor/layer/thumbnail_layer.h
index ef8fd6d98a3d212dbfb8a0a16c23050cc4120616..553705941562860d494239ed55b3aa55b5067343 100644
--- a/chrome/browser/android/compositor/layer/thumbnail_layer.h
+++ b/chrome/browser/android/compositor/layer/thumbnail_layer.h
@@ -32,6 +32,7 @@ class ThumbnailLayer : public Layer {
void SetThumbnail(Thumbnail* thumbnail);
// Clip the thumbnail to the given |clipping|.
void Clip(const gfx::Rect& clipping);
+ void ClearClip();
// Add self to |parent| or replace self at |index| if there already is an
// instance with the same ID at |index|.
void AddSelfToParentOrReplaceAt(scoped_refptr<cc::Layer> parent,
@@ -51,6 +52,7 @@ class ThumbnailLayer : public Layer {
scoped_refptr<cc::UIResourceLayer> layer_;
gfx::SizeF content_size_;
gfx::Rect last_clipping_;
+ bool clipped_ = false;
gfx::SizeF resource_size_;
DISALLOW_COPY_AND_ASSIGN(ThumbnailLayer);
« no previous file with comments | « chrome/browser/android/compositor/layer/tab_layer.cc ('k') | chrome/browser/android/compositor/layer/thumbnail_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698