| 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 private: | 307 private: |
| 308 int32_t routing_id_highmark_; | 308 int32_t routing_id_highmark_; |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 void CreateRenderFrameSetup(mojo::InterfaceRequest<RenderFrameSetup> request) { | 311 void CreateRenderFrameSetup(mojo::InterfaceRequest<RenderFrameSetup> request) { |
| 312 mojo::BindToRequest(new RenderFrameSetupImpl(), &request); | 312 mojo::BindToRequest(new RenderFrameSetupImpl(), &request); |
| 313 } | 313 } |
| 314 | 314 |
| 315 bool ShouldUseMojoChannel() { | 315 bool ShouldUseMojoChannel() { |
| 316 return CommandLine::ForCurrentProcess()->HasSwitch( | 316 return CommandLine::ForCurrentProcess()->HasSwitch( |
| 317 switches::kEnableRendererMojoChannel); | 317 switches::kEnableRendererMojoChannel) || |
| 318 ChannelMojo::CanBeUsed(); |
| 318 } | 319 } |
| 319 | 320 |
| 320 blink::WebGraphicsContext3D::Attributes GetOffscreenAttribs() { | 321 blink::WebGraphicsContext3D::Attributes GetOffscreenAttribs() { |
| 321 blink::WebGraphicsContext3D::Attributes attributes; | 322 blink::WebGraphicsContext3D::Attributes attributes; |
| 322 attributes.shareResources = true; | 323 attributes.shareResources = true; |
| 323 attributes.depth = false; | 324 attributes.depth = false; |
| 324 attributes.stencil = false; | 325 attributes.stencil = false; |
| 325 attributes.antialias = false; | 326 attributes.antialias = false; |
| 326 attributes.noAutomaticFlushes = true; | 327 attributes.noAutomaticFlushes = true; |
| 327 return attributes; | 328 return attributes; |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 hidden_widget_count_--; | 1581 hidden_widget_count_--; |
| 1581 | 1582 |
| 1582 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { | 1583 if (!GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { |
| 1583 return; | 1584 return; |
| 1584 } | 1585 } |
| 1585 | 1586 |
| 1586 ScheduleIdleHandler(kLongIdleHandlerDelayMs); | 1587 ScheduleIdleHandler(kLongIdleHandlerDelayMs); |
| 1587 } | 1588 } |
| 1588 | 1589 |
| 1589 } // namespace content | 1590 } // namespace content |
| OLD | NEW |