summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorvmiura <vmiura@chromium.org>2015-02-13 16:01:17 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-14 00:02:13 +0000
commit78b692864e7745993b8be343f67968ca071e0642 (patch)
treeebf75a9d6b58990635a6e3dc7c5a799921c65e74 /webkit
parent84df06528cc5d4218132942d53f10ad32b6f7dac (diff)
downloadchromium_src-78b692864e7745993b8be343f67968ca071e0642.zip
chromium_src-78b692864e7745993b8be343f67968ca071e0642.tar.gz
chromium_src-78b692864e7745993b8be343f67968ca071e0642.tar.bz2
cc: Add threaded GPU rasterization.
Enable flag: --enable-threaded-gpu-rasterization This patch enables threaded rasterization in GpuTileTaskWorkerPool. There are some not yet landed/rolled dependencies: InProcessContextProvider Context Lost handling (jbauman@). Without this the feature should be considered unstable on WebViews. BUG=454500 Review URL: https://codereview.chromium.org/916723002 Cr-Commit-Position: refs/heads/master@{#316333}
Diffstat (limited to 'webkit')
-rw-r--r--webkit/common/gpu/context_provider_in_process.cc4
-rw-r--r--webkit/common/gpu/context_provider_in_process.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index f2844b2..58bc7ec 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -109,6 +109,10 @@ bool ContextProviderInProcess::BindToCurrentThread() {
return true;
}
+void ContextProviderInProcess::DetachFromThread() {
+ context_thread_checker_.DetachFromThread();
+}
+
void ContextProviderInProcess::InitializeCapabilities() {
capabilities_.gpu = context3d_->GetImplementation()->capabilities();
diff --git a/webkit/common/gpu/context_provider_in_process.h b/webkit/common/gpu/context_provider_in_process.h
index b719d71..1bf376c 100644
--- a/webkit/common/gpu/context_provider_in_process.h
+++ b/webkit/common/gpu/context_provider_in_process.h
@@ -48,6 +48,7 @@ class WEBKIT_GPU_EXPORT ContextProviderInProcess
// cc::ContextProvider:
bool BindToCurrentThread() override;
+ void DetachFromThread() override;
Capabilities ContextCapabilities() override;
::gpu::gles2::GLES2Interface* ContextGL() override;
::gpu::ContextSupport* ContextSupport() override;