Make chrome use the static square vb when drawing rects.
Review URL: http://codereview.appspot.com/4280053/ git-svn-id: http://skia.googlecode.com/svn/trunk@949 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
9d07fec374
commit
0078079b20
@ -21,4 +21,14 @@
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user