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

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

Issue 1870483003: Add command buffer support for GL_RGB CHROMIUM image emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing braces. Created 4 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_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 2485146677adff6954f45c6546ebc696ad37ed64..7fa0697556bedc6106c78d5c0ef79aff5940c1f4 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -269,6 +269,8 @@ class GPU_EXPORT Texture {
void ApplyFormatWorkarounds(FeatureInfo* feature_info);
+ bool EmulatingRGB();
+
private:
friend class MailboxManagerImpl;
friend class MailboxManagerSync;
@@ -488,6 +490,10 @@ class GPU_EXPORT Texture {
// texture.
void UpdateHasImages();
+ // Updates the flag that indicates whether this texture requires RGB
+ // emulation.
+ void UpdateEmulatingRGB();
+
// Increment the framebuffer state change count in all the managers
// referencing this texture.
void IncAllFramebufferStateChangeCount();
@@ -592,6 +598,8 @@ class GPU_EXPORT Texture {
const CompatibilitySwizzle* compatibility_swizzle_;
+ bool emulating_rgb_;
+
DISALLOW_COPY_AND_ASSIGN(Texture);
};
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698