| OLD | NEW |
| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 WebGraphicsContext3D* DrawingBuffer::context() | 204 WebGraphicsContext3D* DrawingBuffer::context() |
| 205 { | 205 { |
| 206 return m_context; | 206 return m_context; |
| 207 } | 207 } |
| 208 | 208 |
| 209 gpu::gles2::GLES2Interface* DrawingBuffer::contextGL() | 209 gpu::gles2::GLES2Interface* DrawingBuffer::contextGL() |
| 210 { | 210 { |
| 211 return m_gl; | 211 return m_gl; |
| 212 } | 212 } |
| 213 | 213 |
| 214 WebGraphicsContext3DProvider* DrawingBuffer::contextProvider() |
| 215 { |
| 216 return m_contextProvider.get(); |
| 217 } |
| 218 |
| 214 void DrawingBuffer::setIsHidden(bool hidden) | 219 void DrawingBuffer::setIsHidden(bool hidden) |
| 215 { | 220 { |
| 216 if (m_isHidden == hidden) | 221 if (m_isHidden == hidden) |
| 217 return; | 222 return; |
| 218 m_isHidden = hidden; | 223 m_isHidden = hidden; |
| 219 if (m_isHidden) | 224 if (m_isHidden) |
| 220 freeRecycledMailboxes(); | 225 freeRecycledMailboxes(); |
| 221 } | 226 } |
| 222 | 227 |
| 223 void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality) | 228 void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality) |
| (...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1026 | 1031 |
| 1027 if (m_antiAliasingMode == MSAAImplicitResolve) | 1032 if (m_antiAliasingMode == MSAAImplicitResolve) |
| 1028 m_gl->FramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACH
MENT0, target, m_colorBuffer.textureId, 0, m_sampleCount); | 1033 m_gl->FramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACH
MENT0, target, m_colorBuffer.textureId, 0, m_sampleCount); |
| 1029 else | 1034 else |
| 1030 m_gl->FramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target,
m_colorBuffer.textureId, 0); | 1035 m_gl->FramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, target,
m_colorBuffer.textureId, 0); |
| 1031 | 1036 |
| 1032 m_gl->BindTexture(GL_TEXTURE_2D, m_texture2DBinding); | 1037 m_gl->BindTexture(GL_TEXTURE_2D, m_texture2DBinding); |
| 1033 } | 1038 } |
| 1034 | 1039 |
| 1035 } // namespace blink | 1040 } // namespace blink |
| OLD | NEW |