Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Nit Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 375
376 void RenderWidgetCompositor::SetOverdrawBottomHeight( 376 void RenderWidgetCompositor::SetOverdrawBottomHeight(
377 float overdraw_bottom_height) { 377 float overdraw_bottom_height) {
378 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); 378 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height);
379 } 379 }
380 380
381 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { 381 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) {
382 layer_tree_host_->SetNeedsRedrawRect(damage_rect); 382 layer_tree_host_->SetNeedsRedrawRect(damage_rect);
383 } 383 }
384 384
385 void RenderWidgetCompositor::SetNeedsForcedRedraw() {
386 layer_tree_host_->SetNextCommitForcesRedraw();
387 setNeedsRedraw();
388 }
389
385 void RenderWidgetCompositor::SetLatencyInfo( 390 void RenderWidgetCompositor::SetLatencyInfo(
386 const ui::LatencyInfo& latency_info) { 391 const ui::LatencyInfo& latency_info) {
387 layer_tree_host_->SetLatencyInfo(latency_info); 392 layer_tree_host_->SetLatencyInfo(latency_info);
388 } 393 }
389 394
390 int RenderWidgetCompositor::GetLayerTreeId() const { 395 int RenderWidgetCompositor::GetLayerTreeId() const {
391 return layer_tree_host_->id(); 396 return layer_tree_host_->id();
392 } 397 }
393 398
394 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { 399 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 if (!suppress_schedule_composite_) 640 if (!suppress_schedule_composite_)
636 widget_->scheduleComposite(); 641 widget_->scheduleComposite();
637 } 642 }
638 643
639 scoped_refptr<cc::ContextProvider> 644 scoped_refptr<cc::ContextProvider>
640 RenderWidgetCompositor::OffscreenContextProvider() { 645 RenderWidgetCompositor::OffscreenContextProvider() {
641 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); 646 return RenderThreadImpl::current()->OffscreenCompositorContextProvider();
642 } 647 }
643 648
644 } // namespace content 649 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698