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

Side by Side Diff: Source/core/html/canvas/WebGLFramebuffer.h

Issue 656723005: Use C++11 features in core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use nullptr 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 // Check if the framebuffer is currently bound. 116 // Check if the framebuffer is currently bound.
117 bool isBound() const; 117 bool isBound() const;
118 118
119 // attach 'attachment' at 'attachmentPoint'. 119 // attach 'attachment' at 'attachmentPoint'.
120 void attach(GLenum attachment, GLenum attachmentPoint); 120 void attach(GLenum attachment, GLenum attachmentPoint);
121 121
122 // Check if a new drawBuffers call should be issued. This is called when we add or remove an attachment. 122 // Check if a new drawBuffers call should be issued. This is called when we add or remove an attachment.
123 void drawBuffersIfNecessary(bool force); 123 void drawBuffersIfNecessary(bool force);
124 124
125 typedef WillBeHeapHashMap<GLenum, RefPtrWillBeMember<WebGLAttachment> > Atta chmentMap; 125 typedef WillBeHeapHashMap<GLenum, RefPtrWillBeMember<WebGLAttachment>> Attac hmentMap;
126 126
127 AttachmentMap m_attachments; 127 AttachmentMap m_attachments;
128 128
129 bool m_hasEverBeenBound; 129 bool m_hasEverBeenBound;
130 130
131 Vector<GLenum> m_drawBuffers; 131 Vector<GLenum> m_drawBuffers;
132 Vector<GLenum> m_filteredDrawBuffers; 132 Vector<GLenum> m_filteredDrawBuffers;
133 }; 133 };
134 134
135 } // namespace blink 135 } // namespace blink
136 136
137 #endif // WebGLFramebuffer_h 137 #endif // WebGLFramebuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698