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

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

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 years, 11 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 TraceWrapperMember<T> m_extension; 878 TraceWrapperMember<T> m_extension;
879 }; 879 };
880 880
881 bool m_extensionEnabled[WebGLExtensionNameCount]; 881 bool m_extensionEnabled[WebGLExtensionNameCount];
882 HeapVector<TraceWrapperMember<ExtensionTracker>> m_extensions; 882 HeapVector<TraceWrapperMember<ExtensionTracker>> m_extensions;
883 883
884 template <typename T> 884 template <typename T>
885 void registerExtension(Member<T>& extensionPtr, 885 void registerExtension(Member<T>& extensionPtr,
886 ExtensionFlags flags = ApprovedExtension, 886 ExtensionFlags flags = ApprovedExtension,
887 const char* const* prefixes = nullptr) { 887 const char* const* prefixes = nullptr) {
888 m_extensions.append(TraceWrapperMember<ExtensionTracker>( 888 m_extensions.push_back(TraceWrapperMember<ExtensionTracker>(
889 this, TypedExtensionTracker<T>::create(extensionPtr, flags, prefixes))); 889 this, TypedExtensionTracker<T>::create(extensionPtr, flags, prefixes)));
890 } 890 }
891 891
892 bool extensionSupportedAndAllowed(const ExtensionTracker*); 892 bool extensionSupportedAndAllowed(const ExtensionTracker*);
893 893
894 inline bool extensionEnabled(WebGLExtensionName name) { 894 inline bool extensionEnabled(WebGLExtensionName name) {
895 return m_extensionEnabled[name]; 895 return m_extensionEnabled[name];
896 } 896 }
897 897
898 // ScopedDrawingBufferBinder is used for 898 // ScopedDrawingBufferBinder is used for
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 context, 1665 context,
1666 context->is3d(), 1666 context->is3d(),
1667 context.is3d()); 1667 context.is3d());
1668 1668
1669 } // namespace blink 1669 } // namespace blink
1670 1670
1671 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( 1671 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(
1672 blink::WebGLRenderingContextBase::TextureUnitState); 1672 blink::WebGLRenderingContextBase::TextureUnitState);
1673 1673
1674 #endif // WebGLRenderingContextBase_h 1674 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698