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

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

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: Rebase, add more comments. 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.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index 8297c6d04556fbdee6806487b6a81552810637e3..7398f93d0dd6883fd145fff79d4123e88bab2d8b 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -1621,6 +1621,16 @@ void Texture::ApplyFormatWorkarounds(FeatureInfo* feature_info) {
}
}
+bool Texture::EmulatingRGB() {
+ for (const FaceInfo& face_info : face_infos_) {
+ for (const LevelInfo& level_info : face_info.level_infos) {
+ if (level_info.image && level_info.image->EmulatingRGB())
piman 2016/04/14 01:05:43 EmulatingRGB is constant for the lifetime of the i
erikchen 2016/04/14 21:24:47 Done.
+ return true;
+ }
+ }
+ return false;
+}
+
TextureRef::TextureRef(TextureManager* manager,
GLuint client_id,
Texture* texture)

Powered by Google App Engine
This is Rietveld 408576698