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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 1447273003: Make the FloatSize constructor from an IntSize explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/platform/DragImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698