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

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

Issue 1830453002: WebGL: GL_RGB emulation for IOSurface backed textures. [For reference only] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error. Created 4 years, 9 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
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/framebuffer_manager.h
diff --git a/gpu/command_buffer/service/framebuffer_manager.h b/gpu/command_buffer/service/framebuffer_manager.h
index 67257dafd25d4526363dd4a5bb12493d9140d338..b0ee38992d835ee145919da0a7ca05c3946b508b 100644
--- a/gpu/command_buffer/service/framebuffer_manager.h
+++ b/gpu/command_buffer/service/framebuffer_manager.h
@@ -62,6 +62,10 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
virtual void AddToSignature(
TextureManager* texture_manager, std::string* signature) const = 0;
virtual bool FormsFeedbackLoop(TextureRef* texture, GLint level) const = 0;
+ virtual bool EmulatingRGB() const = 0;
+
+ virtual bool Initialized() const = 0;
+ virtual void SetInitialized(bool initialized) = 0;
protected:
friend class base::RefCounted<Attachment>;
@@ -76,6 +80,8 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
bool HasUnclearedAttachment(GLenum attachment) const;
bool HasUnclearedColorAttachments() const;
+ bool HasUninitializedDrawBuffers() const;
+ void SetDrawBuffersAsInitialized();
void ClearUnclearedIntOr3DTexturesOrPartiallyClearedTextures(
GLES2Decoder* decoder,
@@ -172,6 +178,7 @@ class GPU_EXPORT Framebuffer : public base::RefCounted<Framebuffer> {
// Return true if any draw buffers has an alpha channel.
bool HasAlphaMRT() const;
+ bool EmulatingRGB() const;
// Return false if any two active color attachments have different internal
// formats.
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_utils.cc ('k') | gpu/command_buffer/service/framebuffer_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698