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

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

Issue 143803004: android: Migrate old content readback to use async readback (and delegated renderer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: turn clipping off for readback Created 6 years, 11 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
Index: content/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index 0a96af555783a25f2c58dc31705976221cb564cd..1688f9d9a245a7c7ca9b567d95deeab8215ee6e8 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -79,31 +79,8 @@ class CONTENT_EXPORT Compositor {
// Deletes a UIResource.
virtual void DeleteUIResource(cc::UIResourceId resource_id) = 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;
-
- // Generates an OpenGL compressed texture and returns a texture handle. May
- // return 0 if the current context is lost.
- virtual blink::WebGLId GenerateCompressedTexture(gfx::Size& size,
- int data_size,
- void* data) = 0;
-
- // Deletes an OpenGL texture.
- virtual void DeleteTexture(blink::WebGLId texture_id) = 0;
-
- // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is
- // done. It is assumed that the texture size matches that of the bitmap.
- virtual bool CopyTextureToBitmap(blink::WebGLId texture_id,
- gfx::JavaBitmap& bitmap) = 0;
-
- // Grabs a copy of |texture_id| and saves it into |bitmap|. No scaling is
- // done. |src_rect| allows the caller to specify which rect of |texture_id|
- // to copy to |bitmap|. It needs to match the size of |bitmap|. Returns
- // true if the |texture_id| was copied into |bitmap|, false if not.
- virtual bool CopyTextureToBitmap(blink::WebGLId texture_id,
- const gfx::Rect& src_rect,
- gfx::JavaBitmap& bitmap) = 0;
+ virtual void SetNeedsCommit() = 0;
powei 2014/01/28 19:46:44 Will be removed
+
protected:
Compositor() {}
};

Powered by Google App Engine
This is Rietveld 408576698