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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.h

Issue 167893008: WebGL: Remove some unused members in WebGLRenderingContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 515
516 bool m_synthesizedErrorsToConsole; 516 bool m_synthesizedErrorsToConsole;
517 int m_numGLErrorsToConsoleAllowed; 517 int m_numGLErrorsToConsoleAllowed;
518 518
519 bool m_multisamplingAllowed; 519 bool m_multisamplingAllowed;
520 bool m_multisamplingObserverRegistered; 520 bool m_multisamplingObserverRegistered;
521 521
522 GLuint m_onePlusMaxEnabledAttribIndex; 522 GLuint m_onePlusMaxEnabledAttribIndex;
523 unsigned long m_onePlusMaxNonDefaultTextureUnit; 523 unsigned long m_onePlusMaxNonDefaultTextureUnit;
524 524
525 bool m_preserveDrawingBuffer;
526 OwnPtr<Extensions3DUtil> m_extensionsUtil; 525 OwnPtr<Extensions3DUtil> m_extensionsUtil;
527 526
528 // Enabled extension objects. 527 // Enabled extension objects.
529 RefPtr<ANGLEInstancedArrays> m_angleInstancedArrays; 528 RefPtr<ANGLEInstancedArrays> m_angleInstancedArrays;
530 RefPtr<EXTFragDepth> m_extFragDepth; 529 RefPtr<EXTFragDepth> m_extFragDepth;
531 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic; 530 RefPtr<EXTTextureFilterAnisotropic> m_extTextureFilterAnisotropic;
532 RefPtr<OESTextureFloat> m_oesTextureFloat; 531 RefPtr<OESTextureFloat> m_oesTextureFloat;
533 RefPtr<OESTextureFloatLinear> m_oesTextureFloatLinear; 532 RefPtr<OESTextureFloatLinear> m_oesTextureFloatLinear;
534 RefPtr<OESTextureHalfFloat> m_oesTextureHalfFloat; 533 RefPtr<OESTextureHalfFloat> m_oesTextureHalfFloat;
535 RefPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear; 534 RefPtr<OESTextureHalfFloatLinear> m_oesTextureHalfFloatLinear;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 604
606 template <typename T> 605 template <typename T>
607 class TypedExtensionTracker FINAL : public ExtensionTracker { 606 class TypedExtensionTracker FINAL : public ExtensionTracker {
608 public: 607 public:
609 TypedExtensionTracker(RefPtr<T>& extensionField, ExtensionFlags flags, c onst char* const* prefixes) 608 TypedExtensionTracker(RefPtr<T>& extensionField, ExtensionFlags flags, c onst char* const* prefixes)
610 : ExtensionTracker(flags, prefixes) 609 : ExtensionTracker(flags, prefixes)
611 , m_extensionField(extensionField) 610 , m_extensionField(extensionField)
612 { 611 {
613 } 612 }
614 613
615 ~TypedExtensionTracker() 614 virtual ~TypedExtensionTracker()
Ken Russell (switch to Gerrit) 2014/02/19 20:23:10 This change is unnecessary because ExtensionTracke
piman 2014/02/19 20:28:24 There's a style rule in chromium land that says th
Ken Russell (switch to Gerrit) 2014/02/19 21:08:13 I'd forgotten so went back and looked. The Blink s
616 { 615 {
617 if (m_extensionField) { 616 if (m_extensionField) {
618 m_extensionField->lose(true); 617 m_extensionField->lose(true);
619 m_extensionField = 0; 618 m_extensionField = 0;
620 } 619 }
621 } 620 }
622 621
623 virtual PassRefPtr<WebGLExtension> getExtension(WebGLRenderingContext* c ontext) const OVERRIDE 622 virtual PassRefPtr<WebGLExtension> getExtension(WebGLRenderingContext* c ontext) const OVERRIDE
624 { 623 {
625 if (!m_extensionField) 624 if (!m_extensionField)
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 void createFallbackBlackTextures1x1(); 690 void createFallbackBlackTextures1x1();
692 691
693 // Helper function for copyTex{Sub}Image, check whether the internalformat 692 // Helper function for copyTex{Sub}Image, check whether the internalformat
694 // and the color buffer format of the current bound framebuffer combination 693 // and the color buffer format of the current bound framebuffer combination
695 // is valid. 694 // is valid.
696 bool isTexInternalFormatColorBufferCombinationValid(GLenum texInternalFormat , GLenum colorBufferFormat); 695 bool isTexInternalFormatColorBufferCombinationValid(GLenum texInternalFormat , GLenum colorBufferFormat);
697 696
698 // Helper function to get the bound framebuffer's color buffer format. 697 // Helper function to get the bound framebuffer's color buffer format.
699 GLenum boundFramebufferColorFormat(); 698 GLenum boundFramebufferColorFormat();
700 699
701 // Helper function to get the bound framebuffer's width.
702 int boundFramebufferWidth();
703
704 // Helper function to get the bound framebuffer's height.
705 int boundFramebufferHeight();
706
707 // Helper function to verify limits on the length of uniform and attribute l ocations. 700 // Helper function to verify limits on the length of uniform and attribute l ocations.
708 bool validateLocationLength(const char* functionName, const String&); 701 bool validateLocationLength(const char* functionName, const String&);
709 702
710 // Helper function to check if size is non-negative. 703 // Helper function to check if size is non-negative.
711 // Generate GL error and return false for negative inputs; otherwise, return true. 704 // Generate GL error and return false for negative inputs; otherwise, return true.
712 bool validateSize(const char* functionName, GLint x, GLint y); 705 bool validateSize(const char* functionName, GLint x, GLint y);
713 706
714 // Helper function to check if all characters in the string belong to the 707 // Helper function to check if all characters in the string belong to the
715 // ASCII subset as defined in GLSL ES 1.0 spec section 3.1. 708 // ASCII subset as defined in GLSL ES 1.0 spec section 3.1.
716 bool validateString(const char* functionName, const String&); 709 bool validateString(const char* functionName, const String&);
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 // If the vector is empty, return the maximum allowed active context number. 917 // If the vector is empty, return the maximum allowed active context number.
925 static size_t oldestContextIndex(); 918 static size_t oldestContextIndex();
926 static IntSize oldestContextSize(); 919 static IntSize oldestContextSize();
927 }; 920 };
928 921
929 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex t->is3d(), context.is3d()); 922 DEFINE_TYPE_CASTS(WebGLRenderingContext, CanvasRenderingContext, context, contex t->is3d(), context.is3d());
930 923
931 } // namespace WebCore 924 } // namespace WebCore
932 925
933 #endif 926 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/canvas/WebGLRenderingContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698