Permalink
Browse files

external/webkit: use Cpu Upload path

Use Cpu Upload mode since the Gpu mode is not working
and expected to be slower.

Change-Id: Iacb6de4a4e054e4f6ebb07d8a8209228e78e5ee0
  • Loading branch information...
1 parent 8b265e1 commit b07faf099f659dc403a82cccccc86a3901d94c81 Matthew Hui committed with Whitehawkx Jan 1, 2012
@@ -1274,3 +1274,8 @@ ifeq ($(SUPPORT_COMPLEX_SCRIPTS),true)
LOCAL_SRC_FILES := $(LOCAL_SRC_FILES) \
platform/graphics/android/fonts/HarfbuzzSkia.cpp
endif
+
+# HACK for qcom devices CPU upload mode
+ifeq ($(TARGET_FORCE_CPU_UPLOAD),true)
+LOCAL_CFLAGS += -DFORCE_CPU_UPLOAD
+endif
@@ -507,7 +507,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");
}
@@ -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:

0 comments on commit b07faf0

Please sign in to comment.