OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 &RenderThreadImpl::OnGpuVDAContextLoss)); | 239 &RenderThreadImpl::OnGpuVDAContextLoss)); |
240 } | 240 } |
241 }; | 241 }; |
242 | 242 |
243 class RenderThreadImpl::RendererContextProviderCommandBuffer | 243 class RenderThreadImpl::RendererContextProviderCommandBuffer |
244 : public ContextProviderCommandBuffer { | 244 : public ContextProviderCommandBuffer { |
245 protected: | 245 protected: |
246 virtual ~RendererContextProviderCommandBuffer() {} | 246 virtual ~RendererContextProviderCommandBuffer() {} |
247 | 247 |
248 virtual scoped_ptr<WebGraphicsContext3DCommandBufferImpl> | 248 virtual scoped_ptr<WebGraphicsContext3DCommandBufferImpl> |
249 CreateOffscreenContext3d() { | 249 CreateOffscreenContext3d() OVERRIDE { |
250 RenderThreadImpl* self = RenderThreadImpl::current(); | 250 RenderThreadImpl* self = RenderThreadImpl::current(); |
251 DCHECK(self); | 251 DCHECK(self); |
252 return self->CreateOffscreenContext3d().Pass(); | 252 return self->CreateOffscreenContext3d().Pass(); |
253 } | 253 } |
254 }; | 254 }; |
255 | 255 |
256 RenderThreadImpl::HistogramCustomizer::HistogramCustomizer() { | 256 RenderThreadImpl::HistogramCustomizer::HistogramCustomizer() { |
257 custom_histograms_.insert("V8.MemoryExternalFragmentationTotal"); | 257 custom_histograms_.insert("V8.MemoryExternalFragmentationTotal"); |
258 custom_histograms_.insert("V8.MemoryHeapSampleTotalCommitted"); | 258 custom_histograms_.insert("V8.MemoryHeapSampleTotalCommitted"); |
259 custom_histograms_.insert("V8.MemoryHeapSampleTotalUsed"); | 259 custom_histograms_.insert("V8.MemoryHeapSampleTotalUsed"); |
(...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 | 1268 |
1269 void RenderThreadImpl::SetFlingCurveParameters( | 1269 void RenderThreadImpl::SetFlingCurveParameters( |
1270 const std::vector<float>& new_touchpad, | 1270 const std::vector<float>& new_touchpad, |
1271 const std::vector<float>& new_touchscreen) { | 1271 const std::vector<float>& new_touchscreen) { |
1272 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1272 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
1273 new_touchscreen); | 1273 new_touchscreen); |
1274 | 1274 |
1275 } | 1275 } |
1276 | 1276 |
1277 } // namespace content | 1277 } // namespace content |
OLD | NEW |