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

Unified Diff: Source/WebCore/platform/graphics/chromium/TrackingTextureAllocator.h

Issue 10690121: Merge 121076 - [chromium] LayerRendererChromium is not getting visibility messages in single thread… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: 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: Source/WebCore/platform/graphics/chromium/TrackingTextureAllocator.h
===================================================================
--- Source/WebCore/platform/graphics/chromium/TrackingTextureAllocator.h (revision 122257)
+++ Source/WebCore/platform/graphics/chromium/TrackingTextureAllocator.h (working copy)
@@ -27,6 +27,7 @@
#include "GraphicsContext3D.h"
#include "TextureManager.h"
+#include <wtf/HashSet.h>
#include <wtf/PassRefPtr.h>
namespace WebCore {
@@ -40,8 +41,9 @@
}
virtual ~TrackingTextureAllocator();
- virtual unsigned createTexture(const IntSize&, GC3Denum format);
- virtual void deleteTexture(unsigned texture, const IntSize&, GC3Denum format);
+ virtual unsigned createTexture(const IntSize&, GC3Denum format) OVERRIDE;
+ virtual void deleteTexture(unsigned texture, const IntSize&, GC3Denum format) OVERRIDE;
+ virtual void deleteAllTextures() OVERRIDE;
size_t currentMemoryUseBytes() const { return m_currentMemoryUseBytes; }
@@ -57,6 +59,7 @@
size_t m_currentMemoryUseBytes;
TextureUsageHint m_textureUsageHint;
bool m_useTextureStorageExt;
+ HashSet<unsigned> m_allocatedTextureIds;
};
}

Powered by Google App Engine
This is Rietveld 408576698