diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-29 04:16:17 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-29 04:16:17 +0000 |
commit | 41de2282baf73691595bb4e411603c9c08e0d055 (patch) | |
tree | 78fb84d6c79b941a34c7c9f9fd4dc31d5cc945d1 /cc/cc.gyp | |
parent | afcade6dd7ada5e53fa96e325268dc3986b29332 (diff) | |
download | chromium_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.gyp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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', |