summaryrefslogtreecommitdiffstats
path: root/cc/output/renderer_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* cc: Remove use of PassAs() and constructor-casting with scoped_ptr.danakj2014-09-271-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Say you have class A and subclass B. Previously it was required to PassAs() a scoped_ptr<B> into a scoped_ptr<A>. This is no longer needed, so just use Pass(). For newly created scoped_ptrs, you can just use make_scoped_ptr always now. And when you want to return or assign an empty scoped_ptr(), you can now use nullptr directly. Also adds PRESUBMIT checks for: - return scoped<T>(foo). This should be return make_scoped_ptr(foo). - bar = scoped<T>(foo). This should be return bar = make_scoped_ptr(foo). - return scoped<T>(). This should be return nullptr. - bar = scoped<T>(). This should be return bar = nullptr. This also replaces p.reset() with p = nullptr; But it does not add a PRESUBMIT check for that because there are things other than scoped_ptr with a reset() function. R=enne@chromium.org Review URL: https://codereview.chromium.org/609663003 Cr-Commit-Position: refs/heads/master@{#297096}
* cc: Use correct message loop proxy in BlockingTaskRunnerskyostil2014-09-041-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | The compositor makes it possible to customize the message loop proxy both on the main and impl threads. However BlockingTaskRunner just uses base::MessageLoopProxy::current() directly and thus overrides this choice. Using the correct message loop proxy is important because clients of BlockingTaskRunner have an implicit dependency on the ordering of tasks posted to BlockingTaskRunner vs. all other tasks posted to the task runner for that same thread. This patch fixes the problem by removing the thread-local BlockingTaskRunner::current() instance in favor of an explicitly constructed instance which is given a specific SingleThreadTaskRunner to use. The resource provider is changed to pass a Proxy-owned blocking task runner to the clients which need one. BUG=391005 TEST=1. Apply https://codereview.chromium.org/363383002 2. out/Debug/chrome --disable-impl-side-painting --ignore-gpu-blacklist tools/perf/page_sets/tough_scheduling_cases/raf_canvas.html Review URL: https://codereview.chromium.org/485043003 Cr-Commit-Position: refs/heads/master@{#293353}
* Remove implicit conversions from scoped_refptr to T* in cc/dcheng2014-08-261-1/+2
| | | | | | | | | | | This patch was generated by running the rewrite_scoped_refptr clang tool on a Linux build. BUG=110610 Review URL: https://codereview.chromium.org/502203003 Cr-Commit-Position: refs/heads/master@{#291833}
* Add flag to enable rendering of text using signed distance fields.jvanverth@google.com2014-05-071-1/+2
| | | | | | | | | | | | This change plumbs through a flag that turns on distance field text in Skia when doing GPU rasterization, as requested by vangelis@chromium.org. BUG=368468 Review URL: https://codereview.chromium.org/266743003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268758 0039d316-1c4b-4281-b951-d872f2087c98
* cc: Delete GrContext resources when tab becomes invisible.alokp@chromium.org2014-04-301-0/+93
BUG=366519 Review URL: https://codereview.chromium.org/255593002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267324 0039d316-1c4b-4281-b951-d872f2087c98