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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 drawingBuffer()->markContentsChanged(); | 1219 drawingBuffer()->markContentsChanged(); |
1220 | 1220 |
1221 LayoutBox* layoutBox = canvas()->layoutBox(); | 1221 LayoutBox* layoutBox = canvas()->layoutBox(); |
1222 if (layoutBox && layoutBox->hasAcceleratedCompositing()) { | 1222 if (layoutBox && layoutBox->hasAcceleratedCompositing()) { |
1223 m_markedCanvasDirty = true; | 1223 m_markedCanvasDirty = true; |
1224 canvas()->clearCopiedImage(); | 1224 canvas()->clearCopiedImage(); |
1225 layoutBox->contentChanged(changeType); | 1225 layoutBox->contentChanged(changeType); |
1226 } else { | 1226 } else { |
1227 if (!m_markedCanvasDirty) { | 1227 if (!m_markedCanvasDirty) { |
1228 m_markedCanvasDirty = true; | 1228 m_markedCanvasDirty = true; |
1229 canvas()->didDraw(FloatRect(FloatPoint(0, 0), clampedCanvasSize())); | 1229 canvas()->didDraw(FloatRect(FloatPoint(0, 0), FloatSize(clampedCanva
sSize()))); |
1230 } | 1230 } |
1231 } | 1231 } |
1232 } | 1232 } |
1233 | 1233 |
1234 WebGLRenderingContextBase::HowToClear WebGLRenderingContextBase::clearIfComposit
ed(GLbitfield mask) | 1234 WebGLRenderingContextBase::HowToClear WebGLRenderingContextBase::clearIfComposit
ed(GLbitfield mask) |
1235 { | 1235 { |
1236 if (isContextLost()) | 1236 if (isContextLost()) |
1237 return Skipped; | 1237 return Skipped; |
1238 | 1238 |
1239 if (!drawingBuffer()->bufferClearNeeded() || (mask && m_framebufferBinding)) | 1239 if (!drawingBuffer()->bufferClearNeeded() || (mask && m_framebufferBinding)) |
(...skipping 5688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6928 | 6928 |
6929 return totalBytesPerPixel; | 6929 return totalBytesPerPixel; |
6930 } | 6930 } |
6931 | 6931 |
6932 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const | 6932 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const |
6933 { | 6933 { |
6934 return m_drawingBuffer.get(); | 6934 return m_drawingBuffer.get(); |
6935 } | 6935 } |
6936 | 6936 |
6937 } // namespace blink | 6937 } // namespace blink |
OLD | NEW |