зеркало из https://github.com/mozilla/pjs.git
Bug 648484, part 1: Fix some warning spam. r=roc
This commit is contained in:
Родитель
c84d75f952
Коммит
ee7eb16013
|
@ -512,12 +512,14 @@ ContentParent::RecvGetClipboardText(const PRInt32& whichClipboard, nsString* tex
|
|||
clipboard->GetData(trans, whichClipboard);
|
||||
nsCOMPtr<nsISupports> tmp;
|
||||
PRUint32 len;
|
||||
rv = trans->GetTransferData(kUnicodeMime, getter_AddRefs(tmp), &len);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
rv = trans->GetTransferData(kUnicodeMime, getter_AddRefs(tmp), &len);
|
||||
if (NS_FAILED(rv))
|
||||
return false;
|
||||
|
||||
nsCOMPtr<nsISupportsString> supportsString = do_QueryInterface(tmp);
|
||||
// No support for non-text data
|
||||
NS_ENSURE_TRUE(supportsString, NS_ERROR_NOT_IMPLEMENTED);
|
||||
if (!supportsString)
|
||||
return false;
|
||||
supportsString->GetData(*text);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
#include "CanvasLayerD3D10.h"
|
||||
|
||||
#include "../d3d9/Nv3DVUtils.h"
|
||||
#include "gfxImageSurface.h"
|
||||
#include "gfxWindowsSurface.h"
|
||||
#include "gfxWindowsPlatform.h"
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
|
||||
#include "ColorLayerD3D10.h"
|
||||
|
||||
#include "../d3d9/Nv3DVUtils.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#ifndef GFX_COLORLAYERD3D10_H
|
||||
#define GFX_COLORLAYERD3D10_H
|
||||
|
||||
#include "Layers.h"
|
||||
#include "LayerManagerD3D10.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
#include "gfxUtils.h"
|
||||
#include "nsRect.h"
|
||||
|
||||
#include "../d3d9/Nv3DVUtils.h"
|
||||
#include "ThebesLayerD3D10.h"
|
||||
#include "ReadbackProcessor.h"
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#ifndef GFX_CONTAINERLAYERD3D10_H
|
||||
#define GFX_CONTAINERLAYERD3D10_H
|
||||
|
||||
#include "Layers.h"
|
||||
#include "LayerManagerD3D10.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
#include "gfxD2DSurface.h"
|
||||
#endif
|
||||
|
||||
#include "../d3d9/Nv3DVUtils.h"
|
||||
#include "gfxTeeSurface.h"
|
||||
#include "gfxUtils.h"
|
||||
#include "ReadbackLayer.h"
|
||||
|
@ -284,7 +285,7 @@ ThebesLayerD3D10::Validate(ReadbackProcessor *aReadback)
|
|||
device()->CreateTexture2D(&desc, NULL, getter_AddRefs(readbackTexture));
|
||||
device()->CopyResource(readbackTexture, mTexture);
|
||||
|
||||
for (int i = 0; i < readbackUpdates.Length(); i++) {
|
||||
for (PRUint32 i = 0; i < readbackUpdates.Length(); i++) {
|
||||
mD3DManager->readbackManager()->PostTask(readbackTexture,
|
||||
&readbackUpdates[i],
|
||||
gfxPoint(newTextureRect.x, newTextureRect.y));
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#ifndef GFX_THEBESLAYERD3D10_H
|
||||
#define GFX_THEBESLAYERD3D10_H
|
||||
|
||||
#include "Layers.h"
|
||||
#include "LayerManagerD3D10.h"
|
||||
|
||||
namespace mozilla {
|
||||
|
|
Загрузка…
Ссылка в новой задаче