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

Unified Diff: ui/views/widget/native_widget_mac_unittest.mm

Issue 1420533005: Mac: Kill lots of AcceleratedWidget code (with fire) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback 2 Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accelerated_widget_mac/software_layer.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac_unittest.mm
diff --git a/ui/views/widget/native_widget_mac_unittest.mm b/ui/views/widget/native_widget_mac_unittest.mm
index 2670ed6b13407904b5d35b482aea20877f93d6d7..a81b8b140b692c12973eb27c04fed4458eebe615 100644
--- a/ui/views/widget/native_widget_mac_unittest.mm
+++ b/ui/views/widget/native_widget_mac_unittest.mm
@@ -65,10 +65,8 @@ class BridgedNativeWidgetTestApi {
// Simulate a frame swap from the compositor. Assumes scale factor of 1.0f.
void SimulateFrameSwap(const gfx::Size& size) {
const float kScaleFactor = 1.0f;
- SkBitmap bitmap;
- bitmap.allocN32Pixels(size.width(), size.height());
- SkCanvas canvas(bitmap);
- bridge_->compositor_widget_->GotSoftwareFrame(kScaleFactor, &canvas);
+ bridge_->compositor_widget_->GotIOSurfaceFrame(
+ base::ScopedCFTypeRef<IOSurfaceRef>(), size, kScaleFactor, false);
std::vector<ui::LatencyInfo> latency_info;
bridge_->AcceleratedWidgetSwapCompleted(latency_info);
}
« no previous file with comments | « ui/accelerated_widget_mac/software_layer.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698