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_widget.h" | 5 #include "content/renderer/render_widget.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1092 | 1092 |
1093 void RenderWidget::DoDeferredUpdateAndSendInputAck() { | 1093 void RenderWidget::DoDeferredUpdateAndSendInputAck() { |
1094 DoDeferredUpdate(); | 1094 DoDeferredUpdate(); |
1095 | 1095 |
1096 if (pending_input_event_ack_) | 1096 if (pending_input_event_ack_) |
1097 Send(pending_input_event_ack_.release()); | 1097 Send(pending_input_event_ack_.release()); |
1098 } | 1098 } |
1099 | 1099 |
1100 void RenderWidget::DoDeferredUpdate() { | 1100 void RenderWidget::DoDeferredUpdate() { |
1101 TRACE_EVENT0("renderer", "RenderWidget::DoDeferredUpdate"); | 1101 TRACE_EVENT0("renderer", "RenderWidget::DoDeferredUpdate"); |
1102 // Not supported in split-dll build. http://crbug.com/237249 | |
nduca
2013/07/03 05:34:24
why? the bug you link is the catch all bug. If a t
haraken
2013/07/03 07:33:15
Done.
| |
1103 #if !defined(CHROME_SPLIT_DLL) | |
1104 TraceEventSamplingState0Scope samplingScope("Chrome\0Paint"); | |
nduca
2013/07/03 05:34:24
What is the null character's role in this? How doe
haraken
2013/07/03 07:33:15
It means "category\0name". This is the normal form
| |
1105 #endif | |
1102 | 1106 |
1103 if (!webwidget_) | 1107 if (!webwidget_) |
1104 return; | 1108 return; |
1105 | 1109 |
1106 if (!init_complete_) { | 1110 if (!init_complete_) { |
1107 TRACE_EVENT0("renderer", "EarlyOut_InitNotComplete"); | 1111 TRACE_EVENT0("renderer", "EarlyOut_InitNotComplete"); |
1108 return; | 1112 return; |
1109 } | 1113 } |
1110 if (update_reply_pending_) { | 1114 if (update_reply_pending_) { |
1111 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending"); | 1115 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending"); |
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2408 | 2412 |
2409 if (!context->InitializeWithDefaultBufferSizes( | 2413 if (!context->InitializeWithDefaultBufferSizes( |
2410 attributes, | 2414 attributes, |
2411 false /* bind generates resources */, | 2415 false /* bind generates resources */, |
2412 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) ) | 2416 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) ) |
2413 return NULL; | 2417 return NULL; |
2414 return context.release(); | 2418 return context.release(); |
2415 } | 2419 } |
2416 | 2420 |
2417 } // namespace content | 2421 } // namespace content |
OLD | NEW |