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

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

Issue 2006583002: Fix expando-loss-2.html test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 // wrappers. The enum below defines how the indices in this array 1050 // wrappers. The enum below defines how the indices in this array
1051 // are used. 1051 // are used.
1052 enum PreservedWrapperIndex { 1052 enum PreservedWrapperIndex {
1053 PreservedArrayBuffer, 1053 PreservedArrayBuffer,
1054 PreservedElementArrayBuffer, 1054 PreservedElementArrayBuffer,
1055 PreservedFramebuffer, 1055 PreservedFramebuffer,
1056 PreservedProgram, 1056 PreservedProgram,
1057 PreservedRenderbuffer, 1057 PreservedRenderbuffer,
1058 PreservedDefaultVAO, 1058 PreservedDefaultVAO,
1059 PreservedVAO, 1059 PreservedVAO,
1060 PreservedTransformFeedback,
1061 PreservedQuery,
1060 }; 1062 };
1061 ScopedPersistent<v8::Array> m_miscWrappers; 1063 ScopedPersistent<v8::Array> m_miscWrappers;
1062 1064
1063 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten tCache, uint32_t index, ScriptWrappable* targetObject); 1065 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten tCache, uint32_t index, ScriptWrappable* targetObject);
1064 1066
1065 // Called to lazily instantiate the wrapper for the default VAO 1067 // Called to lazily instantiate the wrapper for the default VAO
1066 // during calls to bindBuffer and vertexAttribPointer (from 1068 // during calls to bindBuffer and vertexAttribPointer (from
1067 // JavaScript). 1069 // JavaScript).
1068 void maybePreserveDefaultVAOObjectWrapper(ScriptState*); 1070 void maybePreserveDefaultVAOObjectWrapper(ScriptState*);
1069 1071
(...skipping 22 matching lines...) Expand all
1092 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); 1094 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned);
1093 }; 1095 };
1094 1096
1095 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1097 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1096 1098
1097 } // namespace blink 1099 } // namespace blink
1098 1100
1099 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1101 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1100 1102
1101 #endif // WebGLRenderingContextBase_h 1103 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698