diff options
Diffstat (limited to 'Source/WebCore/platform/graphics')
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp | 4 | ||||
-rw-r--r-- | Source/WebCore/platform/graphics/android/rendering/TransferQueue.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp index 7c03219..857d377 100644 --- a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp +++ b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.cpp @@ -516,7 +516,11 @@ void TransferQueue::setTextureUploadType(TextureUploadType type) setPendingDiscard(); +#ifdef FORCE_CPU_UPLOAD + m_currentUploadType = CpuUpload; // force to cpu upload mode for now until gpu upload mode is fixed +#else m_currentUploadType = type; +#endif ALOGD("Now we set the upload to %s", m_currentUploadType == GpuUpload ? "GpuUpload" : "CpuUpload"); } diff --git a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h index 55011b0..4ced1ea 100644 --- a/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h +++ b/Source/WebCore/platform/graphics/android/rendering/TransferQueue.h @@ -69,7 +69,11 @@ enum TextureUploadType { GpuUpload = 1 }; +#ifdef FORCE_CPU_UPLOAD +#define DEFAULT_UPLOAD_TYPE CpuUpload +#else #define DEFAULT_UPLOAD_TYPE GpuUpload +#endif class TileTransferData { public: |