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

Unified Diff: ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm

Issue 2042553002: Mac CoreAnimation compositor in the browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lock_directly
Patch Set: Created 4 years, 6 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 | « gpu/ipc/service/image_transport_surface_overlay_mac.mm ('k') | ui/gfx/gpu_memory_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
diff --git a/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm b/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
index 5aaeb023ea057b420843ff63ccac5cd4bda4144e..b7a369a2c7ecf7f0b323938801c3cf1f8ea0101f 100644
--- a/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
+++ b/ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm
@@ -8,6 +8,7 @@
#include "base/trace_event/trace_event.h"
#include "ui/base/cocoa/animation_utils.h"
+#include "ui/gfx/geometry/dip_util.h"
namespace ui {
@@ -15,7 +16,7 @@
: allow_remote_layers_(allow_remote_layers) {
if (allow_remote_layers_) {
root_ca_layer_.reset([[CALayer alloc] init]);
- [root_ca_layer_ setGeometryFlipped:YES];
+ // [root_ca_layer_ setGeometryFlipped:YES];
[root_ca_layer_ setOpaque:YES];
fullscreen_low_power_layer_.reset(
@@ -29,6 +30,9 @@
float scale_factor) {
pixel_size_ = pixel_size;
scale_factor_ = scale_factor;
+
+ gfx::Rect dip_rect = gfx::Rect(gfx::ConvertSizeToDIP(scale_factor_, pixel_size_));
+ [root_ca_layer_ setFrame:dip_rect.ToCGRect()];
}
bool CALayerTreeCoordinator::SetPendingGLRendererBackbuffer(
« no previous file with comments | « gpu/ipc/service/image_transport_surface_overlay_mac.mm ('k') | ui/gfx/gpu_memory_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698