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

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: Formatting 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
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..7c88708275b04c9a96b3e4d2494a9f29ee8ec3c0 100644
--- a/ui/views/widget/native_widget_mac_unittest.mm
+++ b/ui/views/widget/native_widget_mac_unittest.mm
@@ -65,10 +65,11 @@ 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);
tapted 2015/10/26 02:51:42 Sadly the NativeWidgetMacTest.InvalidateShadow vie
ccameron 2015/10/26 06:40:34 I went with the last solution -- yes, last_swap_si
std::vector<ui::LatencyInfo> latency_info;
bridge_->AcceleratedWidgetSwapCompleted(latency_info);
}

Powered by Google App Engine
This is Rietveld 408576698