summaryrefslogtreecommitdiffstats
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
* Reland r204014 - Don't track whether a resize ack is pending during layout testsjochen@chromium.org2013-06-066-14/+26
| | | | | | | | | | | | | | | | | | | Unlike normal operation, in layout tests the renderer can request a synchronous change of its size. The renderer and the browser therefore often run out of sync. However, it's important that the renderer always acks a resize request from the browser. Previously, I tried to track the size the browser expects the renderer to have in the renderer, however, this turns out to not work when the compositor is in hidpi mode. Instead of trying to fix this up somehow, just ignore whether or not the browser is expecting resize acks during layout tests BUG=244369 TBR=jam@chromium.org Review URL: https://codereview.chromium.org/15878016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204458 0039d316-1c4b-4281-b951-d872f2087c98
* Make TestRenderWidgetHostView delete itself like the other ↵jyasskin@chromium.org2013-06-063-15/+10
| | | | | | | | | | RenderWidgetHostViews. This avoids the need for special-case code in tests. Review URL: https://chromiumcodereview.appspot.com/15793016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204456 0039d316-1c4b-4281-b951-d872f2087c98
* Tests in media_browsertest.cc, encrypted_media_browsertest.cc, and ↵shadi@chromium.org2013-06-067-152/+116
| | | | | | | | | | | | | media_source_browsertest.cc all share similar code to start a web server, load an html page with test parameters and check title changes. This CL abstracts that code into main media_browsertest implentation and allows EME and MSE browser tests to extend it. BUG=245497 TESTS=content_browsertests --gtest_filter=*Media* Review URL: https://chromiumcodereview.appspot.com/16229009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204432 0039d316-1c4b-4281-b951-d872f2087c98
* Make TraceEvent LooperMonitor slightly less chatty in Android logsandrewhayden@chromium.org2013-06-061-3/+0
| | | | | | | | | | | In response to comments by Yaron in review 15731002: https://codereview.chromium.org/15731002/ BUG= Review URL: https://chromiumcodereview.appspot.com/16453003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204429 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 204391 "IndexedDB: Convert decoding functions to pass Str..."thestig@chromium.org2013-06-0612-973/+860
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > IndexedDB: Convert decoding functions to pass StringPieces vs. pointers > > The ugly decoding functions that do pointer arithmetic were nasty in > the Blink codebase. Conversion to Chromium and replacing WTF::Vector > with std::vector made things worse due to iterator differences across > platforms in C++03. Start replacing all that goo with StringPiece > which encapsulates the pointers and is a better match for the "slice" > model of leveldb. > > Also avoids a std::string to std::vector<char> data copy when getting > values - hooray! Standardizes the various DecodeXXX function signatures > to take a mutable slice and always return a success code. > > Key path encode/decode tests were updated to have the "expected" encoded > data in the test rather than manually computing it. > > Left to do: the various Key-type classes still pass around raw pointers, > and LevelDBSlice should be removed entirely in favor of StringPiece. > > BUG=234278 > R=alecflett@chromium.org > > Review URL: https://chromiumcodereview.appspot.com/16256014 TBR=jsbell@chromium.org Review URL: https://codereview.chromium.org/16331006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204417 0039d316-1c4b-4281-b951-d872f2087c98
* Store the RenderProcessHostFactory in a global variablejyasskin@chromium.org2013-06-066-41/+35
| | | | | | | | | | | | | | | instead of a member variable within each SiteInstance. The local variable in one SiteInstance was documented to be passed on to other SiteInstances spawned from it, but that never actually worked. Even fixing that doesn't serve the use case of allowing different RenderProcessHostFactories for different trees of SiteInstances because of the many calls to SiteInstance::CreateForURL inside RenderViewHostManager. Review URL: https://chromiumcodereview.appspot.com/15799009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204409 0039d316-1c4b-4281-b951-d872f2087c98
* Only disable webaudio if no NEON is availableqinmin@chromium.org2013-06-061-2/+9
| | | | | | | | | | | The current NEON check in media_android.cc disables webrtc and <video>, which does not require NEON support. We should only disable webaudio if no NEON is available. BUG=244018 Review URL: https://chromiumcodereview.appspot.com/16399002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204406 0039d316-1c4b-4281-b951-d872f2087c98
* Remove an out of date TODOzork@chromium.org2013-06-061-3/+0
| | | | | | | | BUG=NONE Review URL: https://chromiumcodereview.appspot.com/16394002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204401 0039d316-1c4b-4281-b951-d872f2087c98
* Use WebView::contentsPreferredMinimumSize instead of deprecated WebFrame callsjamesr@chromium.org2013-06-061-8/+1
| | | | | | | | | | | This call has the same behavior but is slightly more efficient since it only checks that layout is up to date once. BUG=243314 Review URL: https://chromiumcodereview.appspot.com/16386002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204400 0039d316-1c4b-4281-b951-d872f2087c98
* Add LatencyInfo support for Mac OSjbauman@chromium.org2013-06-067-13/+35
| | | | | | | | | | | This allows us to track the latency of drawing end-to-end on Macs. BUG=155367 R=kbr@chromium.org Review URL: https://codereview.chromium.org/16001008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204398 0039d316-1c4b-4281-b951-d872f2087c98
* Expose the HttpResponseInfo's ConnectionInfo in window.chrome.loadTimes()rch@chromium.org2013-06-065-0/+20
| | | | | | Review URL: https://chromiumcodereview.appspot.com/12792010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204393 0039d316-1c4b-4281-b951-d872f2087c98
* Defer Android overscroll effect creationjdduke@chromium.org2013-06-064-5/+38
| | | | | | | | | | | | | The Android overscroll effect requires both loading and scaling Android bitmap resources. This should not affect Application or tab startup time. This patch delegates resource loading to a worker thread, and defers effect creation until an overscroll event occurs. BUG=245903 Review URL: https://chromiumcodereview.appspot.com/15896019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204392 0039d316-1c4b-4281-b951-d872f2087c98
* IndexedDB: Convert decoding functions to pass StringPieces vs. pointersjsbell@chromium.org2013-06-0612-860/+973
| | | | | | | | | | | | | | | | | | | | | | | | | | The ugly decoding functions that do pointer arithmetic were nasty in the Blink codebase. Conversion to Chromium and replacing WTF::Vector with std::vector made things worse due to iterator differences across platforms in C++03. Start replacing all that goo with StringPiece which encapsulates the pointers and is a better match for the "slice" model of leveldb. Also avoids a std::string to std::vector<char> data copy when getting values - hooray! Standardizes the various DecodeXXX function signatures to take a mutable slice and always return a success code. Key path encode/decode tests were updated to have the "expected" encoded data in the test rather than manually computing it. Left to do: the various Key-type classes still pass around raw pointers, and LevelDBSlice should be removed entirely in favor of StringPiece. BUG=234278 R=alecflett@chromium.org Review URL: https://chromiumcodereview.appspot.com/16256014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204391 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Use a shared thread for media operations (round 3).scherkus@chromium.org2013-06-067-2/+64
| | | | | | | | | | | This reduces the number of threads created per media element by one. TBR=jamesr,jochen BUG=61293 Review URL: https://chromiumcodereview.appspot.com/15993018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204386 0039d316-1c4b-4281-b951-d872f2087c98
* <webview>: Fix graphics switchfsamuel@chromium.org2013-06-061-13/+17
| | | | | | | | | | | | | | Switching from compositing back to the software rendering path can cause a crash if a damage buffer is not yet available on the next UpdateRect. This patch adds a NULL check to BrowserPlugin::OnUpdateRect. BUG=245764 Test=manually Review URL: https://chromiumcodereview.appspot.com/15813019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204384 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Disable LastInputEventForBeginFramebrianderson@chromium.org2013-06-066-82/+22
| | | | | | | | | | | | | The LastInputEventForBeginFrame optimization makes reasoning about ordering and scheduling more difficult. Disabling it for now. BUG=245438 Review URL: https://chromiumcodereview.appspot.com/15651006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204383 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ChromeOS (arm) use of WeakPtr<T>'s operator T* conversionakalin@chromium.org2013-06-062-11/+11
| | | | | | | | | BUG=245942 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/16356014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204375 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Add ContentViewCore.setInitialViewportSize()"wangxianzhu@chromium.org2013-06-061-24/+5
| | | | | | | | | | | | The added ContentViewCore.setInitialViewportSize() function will not be used. Clean it up. This reverts commit 430e321112c4d816a406dc93b8ec8baa02dc97a9. BUG=168568 Review URL: https://chromiumcodereview.appspot.com/15927027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204372 0039d316-1c4b-4281-b951-d872f2087c98
* MailboxOutputSurface: Wait for sync point before reusing texturepiman@chromium.org2013-06-061-0/+2
| | | | | | | | | | Broke it in r203823. This restores it. BUG=None Review URL: https://chromiumcodereview.appspot.com/15785005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204371 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r203922, "Quickly close tabs/window with long-running unload handlers."avi@chromium.org2013-06-053-43/+5
| | | | | | | | | | BUG=142458, 156896, 247023 TEST=crashes go away TBR=jeremy@chromium.org Review URL: https://codereview.chromium.org/16492002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204355 0039d316-1c4b-4281-b951-d872f2087c98
* Main changes aremichaelbai@chromium.org2013-06-0514-189/+389
| | | | | | | | | | | | | | - Rename ContentVideoViewContextDelegate to ContentVideoViewClient, instead of having the getContext() method, passing the context to ContentVideoView when it is created. - Add getContentVideoViewClient method in ContentViewClient, so it will be created when it actually used. BUG=http://b/8315237 Review URL: https://chromiumcodereview.appspot.com/13669003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204353 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused DownloadManager::CancelDownload()asanka@chromium.org2013-06-054-13/+0
| | | | | | | | BUG=none Review URL: https://chromiumcodereview.appspot.com/16093032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204336 0039d316-1c4b-4281-b951-d872f2087c98
* [content shell] enable logging during layout testsjochen@chromium.org2013-06-051-0/+1
| | | | | | | | | | | | This is required to see stderr output from renderers on windows BUG=111316 R=marja@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/16448003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204328 0039d316-1c4b-4281-b951-d872f2087c98
* content: Remove usage of NOTIFICATION_NAV_ENTRY_COMMITTED from contentphajdan.jr@chromium.org2013-06-0513-184/+372
| | | | | | | | | BUG=170921 R=avi@chromium.org, jam@chromium.org Review URL: https://codereview.chromium.org/16273003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204320 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the duplicated clear of ViewsDelegate::views_delegate in ↵dongseong.hwang@intel.com2013-06-051-1/+0
| | | | | | | | | | | | | | ~ShellViewsDelegateAura(). ~TestViewsDelegate() aleady clears ViewsDelegate::views_delegate, so ~ShellViewsDelegateAura() does not need to clear. ShellViewsDelegateAura extends DesktopTestViewsDelegate that extends TestViewsDelegate. BUG=none Review URL: https://chromiumcodereview.appspot.com/16451004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204318 0039d316-1c4b-4281-b951-d872f2087c98
* <webview> executeScript should use instance IDfsamuel@chromium.org2013-06-058-62/+11
| | | | | | | | | | | | | Currently we trust the embedder to give the browser process the routing ID and process ID of the guest it would like to inject script into. This is potentially unsafe. We should instead use the guest instance ID and verify that the given embedder can access the guest with the given instance ID. BUG=246652 Review URL: https://chromiumcodereview.appspot.com/16361007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204311 0039d316-1c4b-4281-b951-d872f2087c98
* Free the string returned by gtk_file_chooser_get_filename() to avoid a ↵sudarsana.nagineni@intel.com2013-06-051-0/+1
| | | | | | | | | | memory leak. BUG=246952 Review URL: https://chromiumcodereview.appspot.com/16448002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204300 0039d316-1c4b-4281-b951-d872f2087c98
* Use native buffer size preferred by hardware for local audio rendering on ↵wjia@chromium.org2013-06-051-1/+17
| | | | | | | | | | | | | Android The usage of native buffer size allows low latency playback. BUG=243506 R=henrika@chromium.org, xians@chromium.org Review URL: https://codereview.chromium.org/15795005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204290 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize the memory to 0 for RenderData() in webrtc_audio_device_unittest. ↵xians@chromium.org2013-06-051-0/+4
| | | | | | | | | | | This should fix the uninitialized memory warning for valgrind on Mac. BUG=244437 R=henrika@chromium.org Review URL: https://codereview.chromium.org/16195007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204263 0039d316-1c4b-4281-b951-d872f2087c98
* Removed the IsRecordingInProcess check for speech since it is not needed.xians@chromium.org2013-06-057-18/+1
| | | | | | | | | | | | The check is wrong since other clients doing capturing should not prevent speech start recording. BUG=238800 TEST=goto www.corp.google.com/~dou/audio/audio_speech_crash/speech_input.html, the speech recognizer should work on ChromeOS R=dalecurtis@chromium.org, joi@chromium.org, primiano@chromium.org Review URL: https://codereview.chromium.org/16286010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204260 0039d316-1c4b-4281-b951-d872f2087c98
* Android: Disable flaky InsertionHandleTest#testDragInsertionHandle.rmcilroy@chromium.org2013-06-051-3/+6
| | | | | | | | | | | TBR=cjhopman@chromium.org BUG=169648 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/16452006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204255 0039d316-1c4b-4281-b951-d872f2087c98
* Add FileSystemOperationRunner and stop directly creating FileSystemOperationkinuko@chromium.org2013-06-052-102/+39
| | | | | | | | | | | | | | | | Factor out FileSystemOperation creation and internal bookkeeping from FileAPIMessageFilter into FileSystemOperationRunner. This is the first cut to stop calling CreateFileSystemOperation directly at the callsites. BUG=176444 TEST=existing tests R=tzik@chromium.org Review URL: https://codereview.chromium.org/16424002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204242 0039d316-1c4b-4281-b951-d872f2087c98
* LayoutTests: remove timeout support from content_shellloislo@chromium.org2013-06-059-60/+4
| | | | | | | | | | | | | | | When content_shell is used as a browser it doesn't need a timeout mechanics. When it is used as DRT it doesn't need the timeout mechanics because test framework does this job. Lets remove timeout mechanics from WebKit and chromium parts of content_shell. upstream patch https://chromiumcodereview.appspot.com/15930008/ BUG=none TEST=layout_tests R=jochen@chromium.org Review URL: https://codereview.chromium.org/16057015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204236 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Windows use of WeakPtr<T>'s operator T* conversionakalin@chromium.org2013-06-052-4/+4
| | | | | | | | | BUG=245942 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/16427002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204230 0039d316-1c4b-4281-b951-d872f2087c98
* Move webkit/appcache/* into webkit/{browser,common}/appcachekinuko@chromium.org2013-06-0521-58/+72
| | | | | | | | | | | | | | | | | | This moves following files to webkit/common/appcache - appcache/appcache_interfaces* Following files to webkit/renderer/appcache - appcache/appcache_frontend_impl* - appcache/web_application_cache_host_impl* and everything else to webkit/browser/appcache. BUG=239109 TBR=avi@chromium.org, michaeln@chromium.org, thestig@chromium.org Review URL: https://codereview.chromium.org/16081004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204218 0039d316-1c4b-4281-b951-d872f2087c98
* <webview> WebRequest API tied to webview instance ID instead of guest ↵fsamuel@chromium.org2013-06-056-9/+31
| | | | | | | | | | | | | instance ID This permits installing WebRequest API listeners prior to initial navigation and prior to attachment. BUG=171421 Test=WebViewInteractiveTest.NewWindow Review URL: https://chromiumcodereview.appspot.com/15894014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204213 0039d316-1c4b-4281-b951-d872f2087c98
* Replace context parenting by sharing through mailboxespiman@chromium.org2013-06-057-66/+33
| | | | | | | | | | | | | | Instead of tying contexts together through the parenting mechanism, we can allow the client to produce the front buffer of an offscreen context into a mailbox, and use that in the "parent" context. It simplifies the code and the semantics wrt lost contexts, and we want to use mailboxes anyway. BUG=164095 Review URL: https://chromiumcodereview.appspot.com/15798014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204194 0039d316-1c4b-4281-b951-d872f2087c98
* Adds non-numerical stats values to the data series to include them in the ↵jiayl@chromium.org2013-06-052-7/+20
| | | | | | | | | | dump. Also disables the RTP recording button since it's not implemented yet. BUG=244608 Review URL: https://chromiumcodereview.appspot.com/16181003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204188 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 204044 "Replace MediaStreamUIController with MediaStreamU..."grunell@chromium.org2013-06-0514-533/+826
| | | | | | | | | | | | | | | | | | | | | | | > Replace MediaStreamUIController with MediaStreamUIProxy. > > Previously a single object MediaStreamUIController was used to control UI for > all streams. Replaced it with a per-stream MediaStreamUIProxy that simplifies > code in many places. > Also moved media request queueing logic from content layer to chrome. Now > different types of requests may be queued differently (e.g. there is no > reason to block screen capture requests on webcam infobar). > > This change was previously landed in 197222 and reverted in 197242 > > TBR=vrk@chromium.org > > Review URL: https://codereview.chromium.org/16342002 TBR=sergeyu@chromium.org Review URL: https://codereview.chromium.org/15701023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204184 0039d316-1c4b-4281-b951-d872f2087c98
* Sending detach reason when remote debugger is being disconnectedkaznacheev@chromium.org2013-06-053-1/+7
| | | | | | | | | BUG=246163 R=pfeldman@chromium.org Review URL: https://codereview.chromium.org/16329006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204178 0039d316-1c4b-4281-b951-d872f2087c98
* Privitize WaitTillDataReady() and DataReady().dalecurtis@chromium.org2013-06-052-4/+39
| | | | | | | | | | | | | | | | | | | | | | There's no reason for these to be called all over the code base when we know the limited circumstances under which they must be called. Making these private allows for a considerable cleanup of code. The one sketchy part about this CL is removing PollAndStartIfDataReady() for OSX. I believe stream startup times are long enough that data will always be ready though. If this is not the case and our OSX stats for DataReady() plummet, we can find a simpler solution then polling. This change also fixes inaccuracy with the UMA histogram since previously we were reporting DataReady() after WaitTilDataReady() had already been called. BUG=none TEST=audio plays w/o glitching on mac, win, linux. Review URL: https://chromiumcodereview.appspot.com/16103007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204172 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ChromeOS use of WeakPtr<T>'s operator T* conversionakalin@chromium.org2013-06-052-3/+3
| | | | | | | | | BUG=245942 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/15825018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204171 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Android use of WeakPtr<T>'s operator T* conversionakalin@chromium.org2013-06-051-1/+1
| | | | | | | | | BUG=245942 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/16426002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204170 0039d316-1c4b-4281-b951-d872f2087c98
* Fix OS X use of WeakPtr<T>'s operator T* conversionakalin@chromium.org2013-06-051-4/+4
| | | | | | | | | BUG=245942 TBR=darin@chromium.org Review URL: https://codereview.chromium.org/15984008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204164 0039d316-1c4b-4281-b951-d872f2087c98
* Add IPC messages and handling code for EME on Clank.xhwang@chromium.org2013-06-055-14/+214
| | | | | | | | | BUG=233420 TEST=Enabled MSE/EME and tested on the WebM EME demo page (http://downloads.webmproject.org/adaptive-encrypted-demo/adaptive/dash-player.html). NeedKey is fired to the app and GenerateKeyRequest is passed to the browser process. Review URL: https://chromiumcodereview.appspot.com/16272005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204163 0039d316-1c4b-4281-b951-d872f2087c98
* Convert Cookie sql::ErrorDelegate client to callback.shess@chromium.org2013-06-051-44/+20
| | | | | | | | | | API cleanup. BUG=none Review URL: https://chromiumcodereview.appspot.com/15677004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204160 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old webkit support code for IndexedDB.alecflett@chromium.org2013-06-053-6/+1
| | | | | | | | | | | | | IndexedDB code is now part of WebKit's Platform API, so we don't need to manually inject the factory into the PlatformSupport object anymore. BUG=234278 TBR=jamesr@chromium.org Review URL: https://codereview.chromium.org/16335017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204151 0039d316-1c4b-4281-b951-d872f2087c98
* Plumb LatencyInfo through aura.jbauman@chromium.org2013-06-057-12/+77
| | | | | | | | | | This will allow the tracking of latency through the browser compositor. BUG=155367 Review URL: https://chromiumcodereview.appspot.com/15842013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204147 0039d316-1c4b-4281-b951-d872f2087c98
* Clear image cache before running a benchmarkhclam@chromium.org2013-06-051-0/+15
| | | | | | | | | | | | | | | Added this JS benchmarking API to clear image cache: chrome.gpuBenchmarkingExtension.clearImageCache Used this API to clear image cahe for these measurements: image_decoding_measurement rasterize_and_record_benchmark BUG=241943 Review URL: https://chromiumcodereview.appspot.com/15801004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204132 0039d316-1c4b-4281-b951-d872f2087c98
* Use the browser UI thread for audio on OSX.dalecurtis@chromium.org2013-06-052-3/+4
| | | | | | | | | | | | | | | | | | | | | After months of attempted workarounds, there appears no avenue left except to move CoreAudio calls onto the main thread. Sadly that turns out to be the UI thread. This CL swaps the message loop normally used by AudioManagerBase with a pointer to the message loop on which the audio manager is created (the UI loop in Chrome). The audio thread used by Chrome is spun up on demand if a class asks for it. Currently only Tab Audio capture will use this thread. BUG=158170 TEST=No more crashes. miu manually tested tab capture. Review URL: https://chromiumcodereview.appspot.com/14273018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204130 0039d316-1c4b-4281-b951-d872f2087c98