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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 1809553002: blink: Remove unused or rarely used methods from WebGraphicsContext3D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wgc3d
Patch Set: Created 4 years, 9 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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 } else { 198 } else {
199 ASSERT(!m_bufferClearNeeded); 199 ASSERT(!m_bufferClearNeeded);
200 } 200 }
201 } 201 }
202 202
203 WebGraphicsContext3D* DrawingBuffer::context() 203 WebGraphicsContext3D* DrawingBuffer::context()
204 { 204 {
205 return m_context.get(); 205 return m_context.get();
206 } 206 }
207 207
208 gpu::gles2::GLES2Interface* DrawingBuffer::contextGL()
209 {
210 return m_gl;
211 }
212
213
208 void DrawingBuffer::setIsHidden(bool hidden) 214 void DrawingBuffer::setIsHidden(bool hidden)
209 { 215 {
210 if (m_isHidden == hidden) 216 if (m_isHidden == hidden)
211 return; 217 return;
212 m_isHidden = hidden; 218 m_isHidden = hidden;
213 if (m_isHidden) 219 if (m_isHidden)
214 freeRecycledMailboxes(); 220 freeRecycledMailboxes();
215 } 221 }
216 222
217 void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality) 223 void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality)
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 1036
1031 if (m_antiAliasingMode == MSAAImplicitResolve) 1037 if (m_antiAliasingMode == MSAAImplicitResolve)
1032 m_context->framebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_A TTACHMENT0, target, m_colorBuffer.textureId, 0, m_sampleCount); 1038 m_context->framebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_A TTACHMENT0, target, m_colorBuffer.textureId, 0, m_sampleCount);
1033 else 1039 else
1034 m_context->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, ta rget, m_colorBuffer.textureId, 0); 1040 m_context->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, ta rget, m_colorBuffer.textureId, 0);
1035 1041
1036 m_context->bindTexture(GL_TEXTURE_2D, m_texture2DBinding); 1042 m_context->bindTexture(GL_TEXTURE_2D, m_texture2DBinding);
1037 } 1043 }
1038 1044
1039 } // namespace blink 1045 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698