OSDN Git Service

Prevent media layers from allocating textures.
authorDerek Sollenberger <djsollen@google.com>
Mon, 20 Dec 2010 17:28:57 +0000 (12:28 -0500)
committerDerek Sollenberger <djsollen@google.com>
Mon, 20 Dec 2010 17:33:20 +0000 (12:33 -0500)
bug: 2907737
Change-Id: I3b20a91eda8b03572e111e3834d3abcaecaa17de

WebCore/platform/graphics/android/LayerAndroid.h
WebCore/platform/graphics/android/MediaLayer.h

index fb6c4c7..1156601 100644 (file)
@@ -109,7 +109,7 @@ public:
     void reserveGLTextures();
     void createGLTextures();
 
-    bool needsTexture();
+    virtual bool needsTexture();
     void checkForObsolescence();
 
     virtual bool drawGL(SkMatrix&);
index 2ff3197..eb56440 100644 (file)
@@ -44,6 +44,7 @@ public:
 
     virtual bool drawGL(SkMatrix&);
     virtual void paintBitmapGL() const { };
+    virtual bool needsTexture() { return false; }
 
     virtual bool isMedia() const { return true; }
     virtual LayerAndroid* copy() const { return new MediaLayer(*this); }