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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 23513012: Aura: fix full-screen Flash with delegated renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more comments Created 7 years, 3 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/browser/renderer_host/render_widget_host_view_aura.h ('k') | no next file » | 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) 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/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 : host_(RenderWidgetHostImpl::From(host)), 642 : host_(RenderWidgetHostImpl::From(host)),
643 window_(new aura::Window(this)), 643 window_(new aura::Window(this)),
644 in_shutdown_(false), 644 in_shutdown_(false),
645 is_fullscreen_(false), 645 is_fullscreen_(false),
646 popup_parent_host_view_(NULL), 646 popup_parent_host_view_(NULL),
647 popup_child_host_view_(NULL), 647 popup_child_host_view_(NULL),
648 is_loading_(false), 648 is_loading_(false),
649 text_input_type_(ui::TEXT_INPUT_TYPE_NONE), 649 text_input_type_(ui::TEXT_INPUT_TYPE_NONE),
650 can_compose_inline_(true), 650 can_compose_inline_(true),
651 has_composition_text_(false), 651 has_composition_text_(false),
652 last_output_surface_id_(0),
652 last_swapped_surface_scale_factor_(1.f), 653 last_swapped_surface_scale_factor_(1.f),
653 paint_canvas_(NULL), 654 paint_canvas_(NULL),
654 synthetic_move_sent_(false), 655 synthetic_move_sent_(false),
655 accelerated_compositing_state_changed_(false), 656 accelerated_compositing_state_changed_(false),
656 can_lock_compositor_(YES), 657 can_lock_compositor_(YES),
657 cursor_visibility_state_in_renderer_(UNKNOWN), 658 cursor_visibility_state_in_renderer_(UNKNOWN),
658 paint_observer_(NULL), 659 paint_observer_(NULL),
659 touch_editing_client_(NULL) { 660 touch_editing_client_(NULL) {
660 host_->SetView(this); 661 host_->SetView(this);
661 window_observer_.reset(new WindowObserver(this)); 662 window_observer_.reset(new WindowObserver(this));
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 framebuffer_holder_ = NULL; 1453 framebuffer_holder_ = NULL;
1453 if (ShouldSkipFrame(frame_size_in_dip)) { 1454 if (ShouldSkipFrame(frame_size_in_dip)) {
1454 cc::CompositorFrameAck ack; 1455 cc::CompositorFrameAck ack;
1455 cc::TransferableResource::ReturnResources(frame_data->resource_list, 1456 cc::TransferableResource::ReturnResources(frame_data->resource_list,
1456 &ack.resources); 1457 &ack.resources);
1457 RenderWidgetHostImpl::SendSwapCompositorFrameAck( 1458 RenderWidgetHostImpl::SendSwapCompositorFrameAck(
1458 host_->GetRoutingID(), output_surface_id, 1459 host_->GetRoutingID(), output_surface_id,
1459 host_->GetProcess()->GetID(), ack); 1460 host_->GetProcess()->GetID(), ack);
1460 return; 1461 return;
1461 } 1462 }
1463 if (output_surface_id != last_output_surface_id_) {
1464 // Resource ids are scoped by the output surface.
1465 // If the originating output surface doesn't match the last one, it
1466 // indicates the renderer's output surface may have been recreated, in which
1467 // case we should recreate the DelegatedRendererLayer, to avoid matching
1468 // resources from the old one with resources from the new one which would
1469 // have the same id.
1470 window_->layer()->SetDelegatedFrame(scoped_ptr<cc::DelegatedFrameData>(),
1471 frame_size_in_dip);
1472 last_output_surface_id_ = output_surface_id;
1473 }
1462 window_->layer()->SetDelegatedFrame(frame_data.Pass(), frame_size_in_dip); 1474 window_->layer()->SetDelegatedFrame(frame_data.Pass(), frame_size_in_dip);
1463 released_front_lock_ = NULL; 1475 released_front_lock_ = NULL;
1464 current_frame_size_ = frame_size_in_dip; 1476 current_frame_size_ = frame_size_in_dip;
1465 CheckResizeLock(); 1477 CheckResizeLock();
1466 1478
1467 if (paint_observer_) 1479 if (paint_observer_)
1468 paint_observer_->OnUpdateCompositorContent(); 1480 paint_observer_->OnUpdateCompositorContent();
1469 1481
1470 ui::Compositor* compositor = GetCompositor(); 1482 ui::Compositor* compositor = GetCompositor();
1471 if (!compositor) { 1483 if (!compositor) {
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
3259 RenderWidgetHost* widget) { 3271 RenderWidgetHost* widget) {
3260 return new RenderWidgetHostViewAura(widget); 3272 return new RenderWidgetHostViewAura(widget);
3261 } 3273 }
3262 3274
3263 // static 3275 // static
3264 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) { 3276 void RenderWidgetHostViewPort::GetDefaultScreenInfo(WebScreenInfo* results) {
3265 GetScreenInfoForWindow(results, NULL); 3277 GetScreenInfoForWindow(results, NULL);
3266 } 3278 }
3267 3279
3268 } // namespace content 3280 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698