From 41de2282baf73691595bb4e411603c9c08e0d055 Mon Sep 17 00:00:00 2001 From: "jamesr@chromium.org" Date: Thu, 29 Aug 2013 04:16:17 +0000 Subject: 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 --- cc/cc.gyp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cc/cc.gyp') 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', -- cgit v1.1