Remove RendererD3D header from Renderbuffer.cpp.

BUG=angle:773

Change-Id: Idb9f840c0a83550bd9a58c3c4599c65ee916fa3c
Reviewed-on: https://chromium-review.googlesource.com/231853
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Use memset to zero out ClearParameters.

Using the C struct initialization syntax was giving errors on
Linux.

BUG=angle:773

Change-Id: I298c851df7246eeb1772837c5678f3c578483b63
Reviewed-on: https://chromium-review.googlesource.com/231854
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Add missing cstring include to Uniform.cpp.

This file was missing on GCC builds.

BUG=angle:773

Change-Id: I6222b5ee563d64967d878c422abd464c8c92e646
Reviewed-on: https://chromium-review.googlesource.com/231855
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Remove unrefed texture validation variables.

These were causing unused variable warnings in Linux GCC builds.

BUG=angle:773

Change-Id: I860d425a1caef07a58f6ff1b6c113ad7b63283dc
Reviewed-on: https://chromium-review.googlesource.com/231856
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Make compile optimization level hidden outside D3D.

BUG=angle:773

Change-Id: Ia6f16d2e4644c02d94cf99b73f70d05486886925
Reviewed-on: https://chromium-review.googlesource.com/232696
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Do not use std::strlen.

GCC doesn't use the std:: namespace for these methods.

BUG=angle:773

Change-Id: I0d887f103298cdd184b3f7825c5e44363edb9b92
Reviewed-on: https://chromium-review.googlesource.com/232697
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Remove src/libANGLE from default includes.

This is unnecessary, and was breaking Linux builds because of
a conflict with features.h.

BUG=angle:773

Change-Id: Ic704ac24a0e8f5781f67cadca396bef779495efe
Reviewed-on: https://chromium-review.googlesource.com/232698
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Move the SystemInfo helpers to Win32 only.

BUG=angle:773

Change-Id: I53938837d925b14d8fc86c94a38d23bb86d82de5
Reviewed-on: https://chromium-review.googlesource.com/232699
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Ignore GCC's always inline warnings in MurmurHash.

These were benign and treated as errors. The always inline attribute
may still have some value, so I left it in.

BUG=angle:773

Change-Id: I78c5f792485e8f8d890123ee861cfecf2a5649be
Reviewed-on: https://chromium-review.googlesource.com/232790
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Brandon Jones <bajones@chromium.org>
Improve image update perf by re-using a MemoryBuffer.

Instead of allocating a new MemoryBuffer every frame, we can store
one scratch buffer in the Renderer, and occasionally re-create it
to ensure we aren't stuck using the maximum amount of memory.

BUG=angle:842

Change-Id: Id7c1912921ed8f84b151413453c3268d853352db
Reviewed-on: https://chromium-review.googlesource.com/230861
Tested-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@google.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Only generate shader debug info on Windows.

This was messing up the Linux build with some recent changes.

BUG=angle:773

Change-Id: I9ca201f08ddde0a36224872b2c78d1d666cf458d
Reviewed-on: https://chromium-review.googlesource.com/232792
Reviewed-by: Brandon Jones <bajones@chromium.org>
Tested-by: Jamie Madill <jmadill@chromium.org>
Merge some special cases of the default framebuffer into the Framebuffer class.

BUG=angle:841

Change-Id: Id4b5ac38926bc90fa015584d966aaef3a7101849
Reviewed-on: https://chromium-review.googlesource.com/232390
Reviewed-by: Brandon Jones <bajones@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Tested-by: Geoff Lang <geofflang@chromium.org>
Disable support for shader model 2 in Renderer9.

Change-Id: I2fc6e1b440cbdd72c99971d355637819a13951be
Reviewed-on: https://chromium-review.googlesource.com/232091
Tested-by: Geoff Lang <geofflang@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Shannon Woods <shannonwoods@chromium.org>