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

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

Issue 2001503002: WebGL: WebGLObject is non-copyable (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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 ScopedRGBEmulationColorMask(gpu::gles2::GLES2Interface*, GLboolean* colorMas k, DrawingBuffer*); 122 ScopedRGBEmulationColorMask(gpu::gles2::GLES2Interface*, GLboolean* colorMas k, DrawingBuffer*);
123 ~ScopedRGBEmulationColorMask(); 123 ~ScopedRGBEmulationColorMask();
124 124
125 private: 125 private:
126 gpu::gles2::GLES2Interface* m_contextGL; 126 gpu::gles2::GLES2Interface* m_contextGL;
127 GLboolean m_colorMask[4]; 127 GLboolean m_colorMask[4];
128 const bool m_requiresEmulation; 128 const bool m_requiresEmulation;
129 }; 129 };
130 130
131 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext { 131 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext {
132 WTF_MAKE_NONCOPYABLE(WebGLRenderingContextBase);
132 public: 133 public:
133 ~WebGLRenderingContextBase() override; 134 ~WebGLRenderingContextBase() override;
134 135
135 virtual unsigned version() const = 0; 136 virtual unsigned version() const = 0;
136 virtual String contextName() const = 0; 137 virtual String contextName() const = 0;
137 virtual void registerContextExtensions() = 0; 138 virtual void registerContextExtensions() = 0;
138 139
139 virtual void initializeNewContext(); 140 virtual void initializeNewContext();
140 141
141 static unsigned getWebGLVersion(const CanvasRenderingContext*); 142 static unsigned getWebGLVersion(const CanvasRenderingContext*);
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1091 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned); 1092 static PassOwnPtr<WebGraphicsContext3DProvider> createContextProviderInterna l(HTMLCanvasElement*, ScriptState*, WebGLContextAttributes, unsigned);
1092 }; 1093 };
1093 1094
1094 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1095 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1095 1096
1096 } // namespace blink 1097 } // namespace blink
1097 1098
1098 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1099 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1099 1100
1100 #endif // WebGLRenderingContextBase_h 1101 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698