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

Unified Diff: ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java

Issue 1170843002: [Andorid] Migrate to ClipDrawable progress bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ChromeShell test fix 2 Created 5 years, 5 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 | « chrome/android/shell/res/layout/chrome_shell_activity.xml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
diff --git a/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java b/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
index d17ff8fe299ab9e6e35261d4bacbb470d875d892..cf45b2f4d4ecd8e77e8137907ada48d7b04e0291 100644
--- a/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
+++ b/ui/android/java/src/org/chromium/ui/resources/dynamics/ViewResourceAdapter.java
@@ -118,6 +118,13 @@ public class ViewResourceAdapter implements DynamicResource, OnLayoutChangeListe
}
/**
+ * @return Dirty rect that will be drawn on capture.
+ */
+ protected Rect getDirtyRect() {
+ return mDirtyRect;
+ }
+
+ /**
* Called before {@link #capture(Canvas)} is called.
* @param canvas The {@link Canvas} that will be drawn to.
* @param dirtyRect The dirty {@link Rect} or {@code null} if the entire area is being redrawn.
« no previous file with comments | « chrome/android/shell/res/layout/chrome_shell_activity.xml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698