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

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

Issue 1673783004: Hook up BeginFrameSource to SurfaceFactoryClient via SurfaceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Register id namespace on Android Created 4 years, 9 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
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.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_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 #include <utility> 8 #include <utility>
9 9
10 #include "base/android/build_info.h" 10 #include "base/android/build_info.h"
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 const cc::ReturnedResourceArray& resources) { 960 const cc::ReturnedResourceArray& resources) {
961 if (resources.empty()) 961 if (resources.empty())
962 return; 962 return;
963 std::copy(resources.begin(), resources.end(), 963 std::copy(resources.begin(), resources.end(),
964 std::back_inserter(surface_returned_resources_)); 964 std::back_inserter(surface_returned_resources_));
965 if (!ack_callbacks_.size()) 965 if (!ack_callbacks_.size())
966 SendReturnedDelegatedResources(last_output_surface_id_); 966 SendReturnedDelegatedResources(last_output_surface_id_);
967 } 967 }
968 968
969 void RenderWidgetHostViewAndroid::SetBeginFrameSource( 969 void RenderWidgetHostViewAndroid::SetBeginFrameSource(
970 cc::SurfaceId surface_id,
971 cc::BeginFrameSource* begin_frame_source) { 970 cc::BeginFrameSource* begin_frame_source) {
972 // TODO(tansell): Hook this up. 971 // TODO(tansell): Hook this up.
973 } 972 }
974 973
975 void RenderWidgetHostViewAndroid::DestroyDelegatedContent() { 974 void RenderWidgetHostViewAndroid::DestroyDelegatedContent() {
976 RemoveLayers(); 975 RemoveLayers();
977 if (!surface_id_.is_null()) { 976 if (!surface_id_.is_null()) {
978 DCHECK(surface_factory_.get()); 977 DCHECK(surface_factory_.get());
979 surface_factory_->Destroy(surface_id_); 978 surface_factory_->Destroy(surface_id_);
980 surface_id_ = cc::SurfaceId(); 979 surface_id_ = cc::SurfaceId();
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 results->orientationAngle = display.RotationAsDegree(); 2021 results->orientationAngle = display.RotationAsDegree();
2023 results->orientationType = 2022 results->orientationType =
2024 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2023 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2025 gfx::DeviceDisplayInfo info; 2024 gfx::DeviceDisplayInfo info;
2026 results->depth = info.GetBitsPerPixel(); 2025 results->depth = info.GetBitsPerPixel();
2027 results->depthPerComponent = info.GetBitsPerComponent(); 2026 results->depthPerComponent = info.GetBitsPerComponent();
2028 results->isMonochrome = (results->depthPerComponent == 0); 2027 results->isMonochrome = (results->depthPerComponent == 0);
2029 } 2028 }
2030 2029
2031 } // namespace content 2030 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698