OLD | NEW |
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 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4506 | 4506 |
4507 if (!m_restoreTimer.isActive()) | 4507 if (!m_restoreTimer.isActive()) |
4508 m_restoreTimer.startOneShot(0, FROM_HERE); | 4508 m_restoreTimer.startOneShot(0, FROM_HERE); |
4509 } | 4509 } |
4510 | 4510 |
4511 blink::WebLayer* WebGLRenderingContextBase::platformLayer() const | 4511 blink::WebLayer* WebGLRenderingContextBase::platformLayer() const |
4512 { | 4512 { |
4513 return isContextLost() ? 0 : drawingBuffer()->platformLayer(); | 4513 return isContextLost() ? 0 : drawingBuffer()->platformLayer(); |
4514 } | 4514 } |
4515 | 4515 |
4516 void WebGLRenderingContextBase::setFilterLevel(SkPaint::FilterLevel filterLevel) | 4516 void WebGLRenderingContextBase::setFilterQuality(SkFilterQuality filterQuality) |
4517 { | 4517 { |
4518 if (!isContextLost() && drawingBuffer()) { | 4518 if (!isContextLost() && drawingBuffer()) { |
4519 drawingBuffer()->setFilterLevel(filterLevel); | 4519 drawingBuffer()->setFilterQuality(filterQuality); |
4520 } | 4520 } |
4521 } | 4521 } |
4522 | 4522 |
4523 Extensions3DUtil* WebGLRenderingContextBase::extensionsUtil() | 4523 Extensions3DUtil* WebGLRenderingContextBase::extensionsUtil() |
4524 { | 4524 { |
4525 ASSERT(!isContextLost()); | 4525 ASSERT(!isContextLost()); |
4526 if (!m_extensionsUtil) | 4526 if (!m_extensionsUtil) |
4527 m_extensionsUtil = Extensions3DUtil::create(webContext()); | 4527 m_extensionsUtil = Extensions3DUtil::create(webContext()); |
4528 return m_extensionsUtil.get(); | 4528 return m_extensionsUtil.get(); |
4529 } | 4529 } |
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6025 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB
uffer() : 0; | 6025 return m_sharedWebGraphicsContext3D ? m_sharedWebGraphicsContext3D->drawingB
uffer() : 0; |
6026 } | 6026 } |
6027 #else | 6027 #else |
6028 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const | 6028 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const |
6029 { | 6029 { |
6030 return m_drawingBuffer.get(); | 6030 return m_drawingBuffer.get(); |
6031 } | 6031 } |
6032 #endif | 6032 #endif |
6033 | 6033 |
6034 } // namespace blink | 6034 } // namespace blink |
OLD | NEW |