Index: ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResource.java |
diff --git a/ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResource.java b/ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResource.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c31e25bccb3561077d90fb0779c51d44eaec5bd2 |
--- /dev/null |
+++ b/ui/android/java/src/org/chromium/ui/resources/dynamics/DynamicResource.java |
@@ -0,0 +1,24 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+package org.chromium.ui.resources.dynamics; |
+ |
+import org.chromium.ui.resources.Resource; |
+ |
+/** |
+ * A representation of a dynamic resource. The contents of the resource might change from frame to |
+ * frame. |
+ */ |
+public interface DynamicResource extends Resource { |
+ /** |
+ * Note that this is called for every access to the resource during a frame. If a resource is |
+ * dirty, it should not be dirty again during the same looper call. |
+ * |
+ * TODO(dtrainor): Add checks so that a dynamic resource **can't** be built more than once each |
+ * frame. |
+ * |
+ * @return Whether or not this resource is dirty and the CC component should be rebuilt. |
+ */ |
+ boolean isDirty(); |
+} |