Make chrome use the static square vb when drawing rects.
authorbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 16 Mar 2011 20:10:48 +0000 (20:10 +0000)
committerbsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 16 Mar 2011 20:10:48 +0000 (20:10 +0000)
Review URL: http://codereview.appspot.com/4280053/

git-svn-id: http://skia.googlecode.com/svn/trunk@949 2bbb7eff-a529-9590-31e7-b0007b416f81

gpu/include/GrGLConfig_chrome.h

index 6d5f21cea329410e1beee38f7de096eeea9b998a..ff0d7b769c5ffc2ca885da16bcb339152c0e4a44 100644 (file)
 // glGetError() forces a sync with gpu process on chrome
 #define GR_GL_CHECK_ERROR_START     0
 
+// Using the static vb precludes batching rect-to-rect draws
+// because there are matrix changes between each one.
+// Chrome was getting top performance on Windows with
+// batched rect-to-rect draws. But there seems to be some 
+// regression that now causes any dynamic VB data to perform
+// very poorly. In any event the static VB seems to get equal
+// perf to what batching was producing and it always seems to
+// be better on Linux.
+#define GR_STATIC_RECT_VB 1
+
 #endif