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

Unified Diff: Source/core/html/canvas/WebGLShaderPrecisionFormat.h

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Smaller adjustments Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/canvas/WebGLShaderPrecisionFormat.h
diff --git a/Source/core/html/canvas/WebGLShaderPrecisionFormat.h b/Source/core/html/canvas/WebGLShaderPrecisionFormat.h
index 5afd755fab772ebb82552842512517cb72811673..5a7c88959eecad0bb6acb6b40ee036dc7b5c50a4 100644
--- a/Source/core/html/canvas/WebGLShaderPrecisionFormat.h
+++ b/Source/core/html/canvas/WebGLShaderPrecisionFormat.h
@@ -29,19 +29,22 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "platform/graphics/GraphicsTypes3D.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace blink {
-class WebGLShaderPrecisionFormat : public RefCounted<WebGLShaderPrecisionFormat>, public ScriptWrappable {
+class WebGLShaderPrecisionFormat FINAL : public RefCountedWillBeGarbageCollected<WebGLShaderPrecisionFormat>, public ScriptWrappable {
public:
- static PassRefPtr<WebGLShaderPrecisionFormat> create(GLint rangeMin, GLint rangeMax, GLint precision);
+ static PassRefPtrWillBeRawPtr<WebGLShaderPrecisionFormat> create(GLint rangeMin, GLint rangeMax, GLint precision);
GLint rangeMin() const;
GLint rangeMax() const;
GLint precision() const;
+ void trace(Visitor*) { }
+
private:
WebGLShaderPrecisionFormat(GLint rangeMin, GLint rangeMax, GLint precision);

Powered by Google App Engine
This is Rietveld 408576698