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

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

Issue 22870016: Update the nine patch layer to use UI resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 c1cc99729c2eb78c3ea45f2f2b5399b936088f48..96102dc640c70756b12253303744894231ef253c 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -6,6 +6,7 @@
#define CONTENT_PUBLIC_BROWSER_ANDROID_COMPOSITOR_H_
#include "base/callback.h"
+#include "cc/resources/ui_resource_client.h"
#include "content/common/content_export.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/rect.h"
@@ -84,6 +85,12 @@ class CONTENT_EXPORT Compositor {
// Composite immediately. Used in single-threaded mode.
virtual void Composite() = 0;
+ // Generates a UIResource and returns a UIResourceId. May return 0
jdduke (slow) 2013/08/19 23:13:25 Why not have it take a UIResourceBitmap directly?
powei 2013/08/20 19:59:34 Very true. Done.
+ virtual cc::UIResourceId GenerateUIResource(gfx::JavaBitmap& bitmap) = 0;
+
+ // 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 WebKit::WebGLId GenerateTexture(gfx::JavaBitmap& bitmap) = 0;
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/public/browser/android/compositor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698