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

Unified Diff: ui/compositor/layer.h

Issue 10689108: Aura: Have ui::Layer implement WebKit::WebExternalTextureLayerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wait for commit before fast ACKing on resize. Created 8 years, 5 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: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index c31ec8c73f8ea5b9a529943403278fda4249bd58..28c2400cb3b2b01f051b9b40fdf2474f8fba371f 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -14,6 +14,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClient.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebExternalTextureLayerClient.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkRegion.h"
@@ -42,9 +43,10 @@ class Texture;
// NOTE: unlike Views, each Layer does *not* own its children views. If you
// delete a Layer and it has children, the parent of each child layer is set to
// NULL, but the children are not deleted.
-class COMPOSITOR_EXPORT Layer :
- public LayerAnimationDelegate,
- NON_EXPORTED_BASE(public WebKit::WebContentLayerClient) {
+class COMPOSITOR_EXPORT Layer
+ : public LayerAnimationDelegate,
+ NON_EXPORTED_BASE(public WebKit::WebContentLayerClient),
+ NON_EXPORTED_BASE(public WebKit::WebExternalTextureLayerClient) {
public:
Layer();
explicit Layer(LayerType type);
@@ -237,6 +239,11 @@ class COMPOSITOR_EXPORT Layer :
WebKit::WebLayer web_layer() { return web_layer_; }
+ // WebExternalTextureLayerClient
+ virtual unsigned prepareTexture(
+ WebKit::WebTextureUpdater& /* updater */) OVERRIDE;
+ virtual WebKit::WebGraphicsContext3D* context() OVERRIDE;
+
float device_scale_factor() const { return device_scale_factor_; }
// Forces a render surface to be used on this layer. This has no positive

Powered by Google App Engine
This is Rietveld 408576698