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

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

Issue 370513002: Mac ÜC: Make resize smooth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_uc_for_reals
Patch Set: Created 6 years, 5 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
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_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 // chrome/browser/extensions/api/cast_streaming/performance_test.cc 1420 // chrome/browser/extensions/api/cast_streaming/performance_test.cc
1421 TRACE_EVENT0("renderer_host", 1421 TRACE_EVENT0("renderer_host",
1422 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwapped"); 1422 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwapped");
1423 // This trace event is used in 1423 // This trace event is used in
1424 // chrome/browser/extensions/api/cast_streaming/performance_test.cc 1424 // chrome/browser/extensions/api/cast_streaming/performance_test.cc
1425 UNSHIPPED_TRACE_EVENT0("test_fps", 1425 UNSHIPPED_TRACE_EVENT0("test_fps",
1426 TRACE_DISABLED_BY_DEFAULT("OnSwapCompositorFrame")); 1426 TRACE_DISABLED_BY_DEFAULT("OnSwapCompositorFrame"));
1427 if (!ui::LatencyInfo::Verify(params.latency_info, 1427 if (!ui::LatencyInfo::Verify(params.latency_info,
1428 "ViewHostMsg_CompositorSurfaceBuffersSwapped")) 1428 "ViewHostMsg_CompositorSurfaceBuffersSwapped"))
1429 return; 1429 return;
1430
1431 if (params.use_native_widget) {
1432 RenderWidgetHelper::OnNativeSurfaceBuffersSwappedOnUIThread(params);
1433 return;
1434 }
1435
1430 if (!view_) { 1436 if (!view_) {
1431 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1437 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1432 ack_params.sync_point = 0; 1438 ack_params.sync_point = 0;
1433 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, 1439 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id,
1434 params.gpu_process_host_id, 1440 params.gpu_process_host_id,
1435 ack_params); 1441 ack_params);
1436 return; 1442 return;
1437 } 1443 }
1438 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params gpu_params; 1444 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params gpu_params;
1439 gpu_params.surface_id = params.surface_id; 1445 gpu_params.surface_id = params.surface_id;
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
2367 } 2373 }
2368 } 2374 }
2369 2375
2370 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() { 2376 SkBitmap::Config RenderWidgetHostImpl::PreferredReadbackFormat() {
2371 if (view_) 2377 if (view_)
2372 return view_->PreferredReadbackFormat(); 2378 return view_->PreferredReadbackFormat();
2373 return SkBitmap::kARGB_8888_Config; 2379 return SkBitmap::kARGB_8888_Config;
2374 } 2380 }
2375 2381
2376 } // namespace content 2382 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698