summaryrefslogtreecommitdiff
path: root/chromium/ui/accelerated_widget_mac
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-02-11 11:06:35 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-02-11 10:19:37 +0000
commit47c928e8a4986fa683c5763762fa0069c9b3debe (patch)
tree6e4893678bde0f02995d1a66639eccd24f947a47 /chromium/ui/accelerated_widget_mac
parent98a0061b881063a62c1941ccb67af6660ca89062 (diff)
downloadqtwebengine-chromium-47c928e8a4986fa683c5763762fa0069c9b3debe.tar.gz
BASELINE: Update Chromium to 49.0.2623.48
Change-Id: I684541113ff518e3a7d51dfd0b31962b06d10af1 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'chromium/ui/accelerated_widget_mac')
-rw-r--r--chromium/ui/accelerated_widget_mac/accelerated_widget_mac.mm11
1 files changed, 10 insertions, 1 deletions
diff --git a/chromium/ui/accelerated_widget_mac/accelerated_widget_mac.mm b/chromium/ui/accelerated_widget_mac/accelerated_widget_mac.mm
index 4ce927493c2..135f64c2e4b 100644
--- a/chromium/ui/accelerated_widget_mac/accelerated_widget_mac.mm
+++ b/chromium/ui/accelerated_widget_mac/accelerated_widget_mac.mm
@@ -123,9 +123,13 @@ void AcceleratedWidgetMac::GotFrame(
base::ScopedCFTypeRef<IOSurfaceRef> io_surface,
const gfx::Size& pixel_size,
float scale_factor) {
+ TRACE_EVENT0("ui", "AcceleratedWidgetMac::GotFrame");
+
// If there is no view and therefore no superview to draw into, early-out.
- if (!view_)
+ if (!view_) {
+ TRACE_EVENT0("ui", "No associated NSView");
return;
+ }
// Disable the fade-in or fade-out effect if we create or remove layers.
ScopedCAActionDisabler disabler;
@@ -143,6 +147,8 @@ void AcceleratedWidgetMac::GotFrame(
void AcceleratedWidgetMac::GotCAContextFrame(CAContextID ca_context_id,
const gfx::Size& pixel_size,
float scale_factor) {
+ TRACE_EVENT0("ui", "AcceleratedWidgetMac::GotCAContextFrame");
+
// In the layer is replaced, keep the old one around until after the new one
// is installed to avoid flashes.
base::scoped_nsobject<CALayerHost> old_ca_context_layer =
@@ -151,6 +157,7 @@ void AcceleratedWidgetMac::GotCAContextFrame(CAContextID ca_context_id,
// Create the layer to host the layer exported by the GPU process with this
// particular CAContext ID.
if ([ca_context_layer_ contextId] != ca_context_id) {
+ TRACE_EVENT0("ui", "Creating a new CALayerHost");
ca_context_layer_.reset([[CALayerHost alloc] init]);
[ca_context_layer_ setContextId:ca_context_id];
[ca_context_layer_
@@ -182,6 +189,8 @@ void AcceleratedWidgetMac::GotIOSurfaceFrame(
base::ScopedCFTypeRef<IOSurfaceRef> io_surface,
const gfx::Size& pixel_size,
float scale_factor) {
+ TRACE_EVENT0("ui", "AcceleratedWidgetMac::GotIOSurfaceFrame");
+
// If there is not a layer for local frames, create one.
EnsureLocalLayer();