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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 1849023003: Remove the MSAA WebSetting, which is not read or used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rm-alphadepthetc
Patch Set: 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // Restore DrawingBuffer if needed 135 // Restore DrawingBuffer if needed
136 if (!m_readFramebufferBinding && m_drawingBuffer) 136 if (!m_readFramebufferBinding && m_drawingBuffer)
137 m_drawingBuffer->restoreFramebufferBindings(); 137 m_drawingBuffer->restoreFramebufferBindings();
138 } 138 }
139 139
140 private: 140 private:
141 DrawingBuffer* m_drawingBuffer; 141 DrawingBuffer* m_drawingBuffer;
142 Member<WebGLFramebuffer> m_readFramebufferBinding; 142 Member<WebGLFramebuffer> m_readFramebufferBinding;
143 }; 143 };
144 144
145 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext, public Page::MultisamplingChangedObserver { 145 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext {
146 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGLRenderingContextBase); 146 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebGLRenderingContextBase);
147 public: 147 public:
148 ~WebGLRenderingContextBase() override; 148 ~WebGLRenderingContextBase() override;
149 149
150 virtual unsigned version() const = 0; 150 virtual unsigned version() const = 0;
151 virtual String contextName() const = 0; 151 virtual String contextName() const = 0;
152 virtual void registerContextExtensions() = 0; 152 virtual void registerContextExtensions() = 0;
153 153
154 virtual void initializeNewContext(); 154 virtual void initializeNewContext();
155 155
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 bool m_stencilEnabled; 603 bool m_stencilEnabled;
604 GLuint m_stencilMask, m_stencilMaskBack; 604 GLuint m_stencilMask, m_stencilMaskBack;
605 GLint m_stencilFuncRef, m_stencilFuncRefBack; // Note that these are the use r specified values, not the internal clamped value. 605 GLint m_stencilFuncRef, m_stencilFuncRefBack; // Note that these are the use r specified values, not the internal clamped value.
606 GLuint m_stencilFuncMask, m_stencilFuncMaskBack; 606 GLuint m_stencilFuncMask, m_stencilFuncMaskBack;
607 607
608 bool m_isDepthStencilSupported; 608 bool m_isDepthStencilSupported;
609 609
610 bool m_synthesizedErrorsToConsole; 610 bool m_synthesizedErrorsToConsole;
611 int m_numGLErrorsToConsoleAllowed; 611 int m_numGLErrorsToConsoleAllowed;
612 612
613 bool m_multisamplingAllowed;
614 bool m_multisamplingObserverRegistered;
615
616 unsigned long m_onePlusMaxNonDefaultTextureUnit; 613 unsigned long m_onePlusMaxNonDefaultTextureUnit;
617 614
618 OwnPtr<Extensions3DUtil> m_extensionsUtil; 615 OwnPtr<Extensions3DUtil> m_extensionsUtil;
619 616
620 enum ExtensionFlags { 617 enum ExtensionFlags {
621 ApprovedExtension = 0x00, 618 ApprovedExtension = 0x00,
622 // Extension that is behind the draft extensions runtime flag: 619 // Extension that is behind the draft extensions runtime flag:
623 DraftExtension = 0x01, 620 DraftExtension = 0x01,
624 }; 621 };
625 622
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 // Later, return the cached value. 1051 // Later, return the cached value.
1055 GLint maxDrawBuffers(); 1052 GLint maxDrawBuffers();
1056 GLint maxColorAttachments(); 1053 GLint maxColorAttachments();
1057 1054
1058 void setBackDrawBuffer(GLenum); 1055 void setBackDrawBuffer(GLenum);
1059 void setFramebuffer(GLenum, WebGLFramebuffer*); 1056 void setFramebuffer(GLenum, WebGLFramebuffer*);
1060 1057
1061 virtual void restoreCurrentFramebuffer(); 1058 virtual void restoreCurrentFramebuffer();
1062 void restoreCurrentTexture2D(); 1059 void restoreCurrentTexture2D();
1063 1060
1064 void multisamplingChanged(bool) override;
1065
1066 void findNewMaxNonDefaultTextureUnit(); 1061 void findNewMaxNonDefaultTextureUnit();
1067 1062
1068 virtual void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, const char* functionName); 1063 virtual void renderbufferStorageImpl(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, const char* functionName);
1069 1064
1070 // Ensures that the JavaScript wrappers for objects that are 1065 // Ensures that the JavaScript wrappers for objects that are
1071 // latched into the context's state, or which are implicitly 1066 // latched into the context's state, or which are implicitly
1072 // linked together (like programs and their attached shaders), are 1067 // linked together (like programs and their attached shaders), are
1073 // not garbage collected before they should be. 1068 // not garbage collected before they should be.
1074 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec t, const char* baseName, unsigned long index, ScriptWrappable* targetObject); 1069 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec t, const char* baseName, unsigned long index, ScriptWrappable* targetObject);
1075 // Called to lazily instantiate the wrapper for the default VAO 1070 // Called to lazily instantiate the wrapper for the default VAO
(...skipping 27 matching lines...) Expand all
1103 #endif 1098 #endif
1104 }; 1099 };
1105 1100
1106 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1101 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1107 1102
1108 } // namespace blink 1103 } // namespace blink
1109 1104
1110 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1105 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1111 1106
1112 #endif // WebGLRenderingContextBase_h 1107 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698