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

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

Issue 731133002: Upstream ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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
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();
+}

Powered by Google App Engine
This is Rietveld 408576698