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

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: add hidden values 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl ('k') | no next file » | 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 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,
1060 }; 1061 };
1061 ScopedPersistent<v8::Array> m_miscWrappers; 1062 ScopedPersistent<v8::Array> m_miscWrappers;
1062 1063
1063 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten tCache, uint32_t index, ScriptWrappable* targetObject); 1064 static void preserveObjectWrapper(ScriptState*, ScriptWrappable* sourceObjec t, v8::Local<v8::String> hiddenValueName, ScopedPersistent<v8::Array>* persisten tCache, uint32_t index, ScriptWrappable* targetObject);
1064 1065
1065 // Called to lazily instantiate the wrapper for the default VAO 1066 // Called to lazily instantiate the wrapper for the default VAO
1066 // during calls to bindBuffer and vertexAttribPointer (from 1067 // during calls to bindBuffer and vertexAttribPointer (from
1067 // JavaScript). 1068 // JavaScript).
1068 void maybePreserveDefaultVAOObjectWrapper(ScriptState*); 1069 void maybePreserveDefaultVAOObjectWrapper(ScriptState*);
1069 1070
(...skipping 22 matching lines...) Expand all
1092 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); 1093 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned);
1093 }; 1094 };
1094 1095
1095 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1096 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1096 1097
1097 } // namespace blink 1098 } // namespace blink
1098 1099
1099 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1100 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1100 1101
1101 #endif // WebGLRenderingContextBase_h 1102 #endif // WebGLRenderingContextBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698