зеркало из https://github.com/mozilla/gecko-dev.git
Bug 755031 - Fix some other warnings in gfx/2d. r=jmuizelaar
This commit is contained in:
Родитель
e8ee797a85
Коммит
c820f4dd55
|
@ -107,8 +107,10 @@ public:
|
|||
// We still need to take into account clipBounds if it contains additional
|
||||
// clipping information.
|
||||
RefPtr<ID2D1RectangleGeometry> rectGeom;
|
||||
factory()->CreateRectangleGeometry(D2D1::Rect(clipBounds.x, clipBounds.y,
|
||||
clipBounds.XMost(), clipBounds.YMost()),
|
||||
factory()->CreateRectangleGeometry(D2D1::Rect(Float(clipBounds.x),
|
||||
Float(clipBounds.y),
|
||||
Float(clipBounds.XMost()),
|
||||
Float(clipBounds.YMost())),
|
||||
byRef(rectGeom));
|
||||
|
||||
mClippedArea = mDT->Intersect(mClippedArea, rectGeom);
|
||||
|
|
|
@ -211,7 +211,9 @@ RecordedEvent::ReadStrokeOptions(std::istream &aStream, StrokeOptions &aStrokeOp
|
|||
ReadElement(aStream, aStrokeOptions.mMiterLimit);
|
||||
ReadElement(aStream, joinStyle);
|
||||
ReadElement(aStream, capStyle);
|
||||
aStrokeOptions.mDashLength = dashLength;
|
||||
// On 32 bit we truncate the value of dashLength.
|
||||
// See also bug 811850 for history.
|
||||
aStrokeOptions.mDashLength = size_t(dashLength);
|
||||
aStrokeOptions.mLineJoin = joinStyle;
|
||||
aStrokeOptions.mLineCap = capStyle;
|
||||
|
||||
|
|
|
@ -171,7 +171,9 @@ DataSourceSurfaceD2D::DataSourceSurfaceD2D(SourceSurfaceD2D* aSourceSurface)
|
|||
|
||||
renderTarget->BeginDraw();
|
||||
renderTarget->DrawBitmap(aSourceSurface->mBitmap,
|
||||
D2D1::RectF(0, 0, mSize.width, mSize.height));
|
||||
D2D1::RectF(0, 0,
|
||||
Float(mSize.width),
|
||||
Float(mSize.height)));
|
||||
renderTarget->EndDraw();
|
||||
|
||||
desc.CPUAccessFlags = D3D10_CPU_ACCESS_READ;
|
||||
|
|
Загрузка…
Ссылка в новой задаче