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

Unified Diff: gpu/command_buffer/service/texture_definition.h

Issue 1105153003: Avoid EGLImage target texture reuse on PowerVR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 8 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: gpu/command_buffer/service/texture_definition.h
diff --git a/gpu/command_buffer/service/texture_definition.h b/gpu/command_buffer/service/texture_definition.h
index dcab0b8455fee295f0a0c23ae6139b8864a8212a..65df72f25c682747b0f9424584cda5d31560908a 100644
--- a/gpu/command_buffer/service/texture_definition.h
+++ b/gpu/command_buffer/service/texture_definition.h
@@ -40,6 +40,8 @@ class NativeImageBuffer : public base::RefCountedThreadSafe<NativeImageBuffer> {
// the underlying image buffer(s).
class TextureDefinition {
public:
+ static void AvoidEGLTargetTextureReuse();
+
TextureDefinition();
TextureDefinition(Texture* texture,
unsigned int version,
@@ -59,6 +61,7 @@ class TextureDefinition {
private:
bool SafeToRenderFrom() const;
+ void UpdateTextureInternal(Texture* texture) const;
struct LevelInfo {
LevelInfo();

Powered by Google App Engine
This is Rietveld 408576698