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

Side by Side Diff: sky/engine/core/html/canvas/WebGLRenderbuffer.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 GLsizei height() const { return m_height; } 55 GLsizei height() const { return m_height; }
56 56
57 bool hasEverBeenBound() const { return object() && m_hasEverBeenBound; } 57 bool hasEverBeenBound() const { return object() && m_hasEverBeenBound; }
58 58
59 void setHasEverBeenBound() { m_hasEverBeenBound = true; } 59 void setHasEverBeenBound() { m_hasEverBeenBound = true; }
60 60
61 void setEmulatedStencilBuffer(PassRefPtr<WebGLRenderbuffer> buffer) { m_emul atedStencilBuffer = buffer; } 61 void setEmulatedStencilBuffer(PassRefPtr<WebGLRenderbuffer> buffer) { m_emul atedStencilBuffer = buffer; }
62 WebGLRenderbuffer* emulatedStencilBuffer() const { return m_emulatedStencilB uffer.get(); } 62 WebGLRenderbuffer* emulatedStencilBuffer() const { return m_emulatedStencilB uffer.get(); }
63 void deleteEmulatedStencilBuffer(blink::WebGraphicsContext3D* context3d); 63 void deleteEmulatedStencilBuffer(blink::WebGraphicsContext3D* context3d);
64 64
65 virtual void trace(Visitor*) override;
66
67 protected: 65 protected:
68 explicit WebGLRenderbuffer(WebGLRenderingContextBase*); 66 explicit WebGLRenderbuffer(WebGLRenderingContextBase*);
69 67
70 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) override; 68 virtual void deleteObjectImpl(blink::WebGraphicsContext3D*, Platform3DObject ) override;
71 69
72 private: 70 private:
73 virtual bool isRenderbuffer() const override { return true; } 71 virtual bool isRenderbuffer() const override { return true; }
74 72
75 GLenum m_internalFormat; 73 GLenum m_internalFormat;
76 GLsizei m_width, m_height; 74 GLsizei m_width, m_height;
77 75
78 bool m_hasEverBeenBound; 76 bool m_hasEverBeenBound;
79 77
80 RefPtr<WebGLRenderbuffer> m_emulatedStencilBuffer; 78 RefPtr<WebGLRenderbuffer> m_emulatedStencilBuffer;
81 }; 79 };
82 80
83 } // namespace blink 81 } // namespace blink
84 82
85 #endif // WebGLRenderbuffer_h 83 #endif // WebGLRenderbuffer_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/canvas/WebGLObject.h ('k') | sky/engine/core/html/canvas/WebGLRenderbuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698