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

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

Issue 274163004: Remove browser-side tracking of accelerated compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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
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_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/android/sys_utils.h" 9 #include "base/android/sys_utils.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 752
753 content_view_core_->ShowDisambiguationPopup(target_rect, zoomed_bitmap); 753 content_view_core_->ShowDisambiguationPopup(target_rect, zoomed_bitmap);
754 } 754 }
755 755
756 scoped_ptr<SyntheticGestureTarget> 756 scoped_ptr<SyntheticGestureTarget>
757 RenderWidgetHostViewAndroid::CreateSyntheticGestureTarget() { 757 RenderWidgetHostViewAndroid::CreateSyntheticGestureTarget() {
758 return scoped_ptr<SyntheticGestureTarget>(new SyntheticGestureTargetAndroid( 758 return scoped_ptr<SyntheticGestureTarget>(new SyntheticGestureTargetAndroid(
759 host_, content_view_core_->CreateTouchEventSynthesizer())); 759 host_, content_view_core_->CreateTouchEventSynthesizer()));
760 } 760 }
761 761
762 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() {
763 }
764
765 void RenderWidgetHostViewAndroid::SendDelegatedFrameAck( 762 void RenderWidgetHostViewAndroid::SendDelegatedFrameAck(
766 uint32 output_surface_id) { 763 uint32 output_surface_id) {
767 DCHECK(host_); 764 DCHECK(host_);
768 cc::CompositorFrameAck ack; 765 cc::CompositorFrameAck ack;
769 if (resource_collection_.get()) 766 if (resource_collection_.get())
770 resource_collection_->TakeUnusedResourcesForChildCompositor(&ack.resources); 767 resource_collection_->TakeUnusedResourcesForChildCompositor(&ack.resources);
771 RenderWidgetHostImpl::SendSwapCompositorFrameAck(host_->GetRoutingID(), 768 RenderWidgetHostImpl::SendSwapCompositorFrameAck(host_->GetRoutingID(),
772 output_surface_id, 769 output_surface_id,
773 host_->GetProcess()->GetID(), 770 host_->GetProcess()->GetID(),
774 ack); 771 ack);
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 results->availableRect = display.work_area(); 1453 results->availableRect = display.work_area();
1457 results->deviceScaleFactor = display.device_scale_factor(); 1454 results->deviceScaleFactor = display.device_scale_factor();
1458 results->orientationAngle = display.RotationAsDegree(); 1455 results->orientationAngle = display.RotationAsDegree();
1459 gfx::DeviceDisplayInfo info; 1456 gfx::DeviceDisplayInfo info;
1460 results->depth = info.GetBitsPerPixel(); 1457 results->depth = info.GetBitsPerPixel();
1461 results->depthPerComponent = info.GetBitsPerComponent(); 1458 results->depthPerComponent = info.GetBitsPerComponent();
1462 results->isMonochrome = (results->depthPerComponent == 0); 1459 results->isMonochrome = (results->depthPerComponent == 0);
1463 } 1460 }
1464 1461
1465 } // namespace content 1462 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698