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

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

Issue 387863004: Revert 281866 "Mac ÜC: Make resize smooth" (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | 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_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
1436 if (!view_) { 1430 if (!view_) {
1437 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; 1431 AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
1438 ack_params.sync_point = 0; 1432 ack_params.sync_point = 0;
1439 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, 1433 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id,
1440 params.gpu_process_host_id, 1434 params.gpu_process_host_id,
1441 ack_params); 1435 ack_params);
1442 return; 1436 return;
1443 } 1437 }
1444 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params gpu_params; 1438 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params gpu_params;
1445 gpu_params.surface_id = params.surface_id; 1439 gpu_params.surface_id = params.surface_id;
(...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 } 2381 }
2388 } 2382 }
2389 2383
2390 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2384 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2391 if (view_) 2385 if (view_)
2392 return view_->PreferredReadbackFormat(); 2386 return view_->PreferredReadbackFormat();
2393 return kN32_SkColorType; 2387 return kN32_SkColorType;
2394 } 2388 }
2395 2389
2396 } // namespace content 2390 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698