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

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: WebGLObject WebGLExtension Created 4 years, 3 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/WebGLObject.h ('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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 ScopedRGBEmulationColorMask(gpu::gles2::GLES2Interface*, GLboolean* colorMas k, DrawingBuffer*); 123 ScopedRGBEmulationColorMask(gpu::gles2::GLES2Interface*, GLboolean* colorMas k, DrawingBuffer*);
124 ~ScopedRGBEmulationColorMask(); 124 ~ScopedRGBEmulationColorMask();
125 125
126 private: 126 private:
127 gpu::gles2::GLES2Interface* m_contextGL; 127 gpu::gles2::GLES2Interface* m_contextGL;
128 GLboolean m_colorMask[4]; 128 GLboolean m_colorMask[4];
129 const bool m_requiresEmulation; 129 const bool m_requiresEmulation;
130 }; 130 };
131 131
132 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext { 132 class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext {
133 WTF_MAKE_NONCOPYABLE(WebGLRenderingContextBase);
133 public: 134 public:
134 ~WebGLRenderingContextBase() override; 135 ~WebGLRenderingContextBase() override;
135 136
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*);
142 143
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 bool isPaintable() const final { return drawingBuffer(); } 1123 bool isPaintable() const final { return drawingBuffer(); }
1123 }; 1124 };
1124 1125
1125 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1126 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1126 1127
1127 } // namespace blink 1128 } // namespace blink
1128 1129
1129 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1130 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1130 1131
1131 #endif // WebGLRenderingContextBase_h 1132 #endif // WebGLRenderingContextBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698