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

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: wgc3d-unused: WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture 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
208 void DrawingBuffer::setIsHidden(bool hidden) 213 void DrawingBuffer::setIsHidden(bool hidden)
209 { 214 {
210 if (m_isHidden == hidden) 215 if (m_isHidden == hidden)
211 return; 216 return;
212 m_isHidden = hidden; 217 m_isHidden = hidden;
213 if (m_isHidden) 218 if (m_isHidden)
214 freeRecycledMailboxes(); 219 freeRecycledMailboxes();
215 } 220 }
216 221
217 void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality) 222 void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality)
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 1035
1031 if (m_antiAliasingMode == MSAAImplicitResolve) 1036 if (m_antiAliasingMode == MSAAImplicitResolve)
1032 m_context->framebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_A TTACHMENT0, target, m_colorBuffer.textureId, 0, m_sampleCount); 1037 m_context->framebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_A TTACHMENT0, target, m_colorBuffer.textureId, 0, m_sampleCount);
1033 else 1038 else
1034 m_context->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, ta rget, m_colorBuffer.textureId, 0); 1039 m_context->framebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, ta rget, m_colorBuffer.textureId, 0);
1035 1040
1036 m_context->bindTexture(GL_TEXTURE_2D, m_texture2DBinding); 1041 m_context->bindTexture(GL_TEXTURE_2D, m_texture2DBinding);
1037 } 1042 }
1038 1043
1039 } // namespace blink 1044 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698