summaryrefslogtreecommitdiffstats
path: root/cc/cc.gyp
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 04:16:17 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-29 04:16:17 +0000
commit41de2282baf73691595bb4e411603c9c08e0d055 (patch)
tree78fb84d6c79b941a34c7c9f9fd4dc31d5cc945d1 /cc/cc.gyp
parentafcade6dd7ada5e53fa96e325268dc3986b29332 (diff)
downloadchromium_src-41de2282baf73691595bb4e411603c9c08e0d055.zip
chromium_src-41de2282baf73691595bb4e411603c9c08e0d055.tar.gz
chromium_src-41de2282baf73691595bb4e411603c9c08e0d055.tar.bz2
Pass context capabilities via cc::ContextProvider instead of gl string
This migrates cc to checking for context capabilities through a struct provided by the ContextProvider instead of parsing out the GL_EXTENSIONS string manually. This is a very minor performance win, since we don't parse the string multiple times. More importantly, this centralizes capability testing into one place and breaks cc's dependency on WebString. The implementation of ContextCapabilities() in content still parses out the extensions string from the context, but we can route this data in more directly in a follow-up. BUG=279518 Review URL: https://chromiumcodereview.appspot.com/23466003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/cc.gyp')
-rw-r--r--cc/cc.gyp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/cc.gyp b/cc/cc.gyp
index c6f3355..2f840a4 100644
--- a/cc/cc.gyp
+++ b/cc/cc.gyp
@@ -14,11 +14,11 @@
'<(DEPTH)/base/base.gyp:base',
'<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
'<(DEPTH)/gpu/gpu.gyp:gpu',
- '<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/media/media.gyp:media',
+ '<(DEPTH)/skia/skia.gyp:skia',
+ '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal',
'<(DEPTH)/ui/gl/gl.gyp:gl',
'<(DEPTH)/ui/ui.gyp:ui',
- '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal',
],
'defines': [
'CC_IMPLEMENTATION=1',
@@ -185,6 +185,7 @@
'output/compositor_frame_ack.h',
'output/compositor_frame_metadata.cc',
'output/compositor_frame_metadata.h',
+ 'output/context_provider.cc',
'output/context_provider.h',
'output/copy_output_request.cc',
'output/copy_output_request.h',