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

Unified Diff: content/public/browser/android/compositor.h

Issue 82553015: Switch the android overscroll glow to use UIResources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor naming changes Created 7 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: content/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index eb0c96e6413539116aad6f9d0dd159e0e2ca2a94..8783f64f205f560ab15974e53d43d4a59d960e24 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -76,6 +76,9 @@ class CONTENT_EXPORT Compositor {
// Deletes a UIResource.
virtual void DeleteUIResource(cc::UIResourceId resource_id) = 0;
+ // Returns the size of a UIResource.
+ virtual gfx::Size GetUIResourceSize(cc::UIResourceId id) const = 0;
+
// Generates an OpenGL texture and returns a texture handle. May return 0
// if the current context is lost.
virtual blink::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) = 0;
@@ -101,6 +104,10 @@ class CONTENT_EXPORT Compositor {
virtual bool CopyTextureToBitmap(blink::WebGLId texture_id,
const gfx::Rect& src_rect,
gfx::JavaBitmap& bitmap) = 0;
+
+ virtual cc::UIResourceId GetOverscrollEdgeId() const = 0;
+ virtual cc::UIResourceId GetOverscrollGlowId() const = 0;
+
protected:
Compositor() {}
};

Powered by Google App Engine
This is Rietveld 408576698