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

Unified Diff: gpu/ipc/service/image_transport_surface_overlay_mac.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
Index: gpu/ipc/service/image_transport_surface_overlay_mac.mm
diff --git a/gpu/ipc/service/image_transport_surface_overlay_mac.mm b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
index 1ced5d09fe883c99e9e6531bd40af9c9056e4e24..1fc47617ec03bac4bae4dd806fb7db6d5e93318b 100644
--- a/gpu/ipc/service/image_transport_surface_overlay_mac.mm
+++ b/gpu/ipc/service/image_transport_surface_overlay_mac.mm
@@ -210,8 +210,10 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
base::TimeTicks finish_time = base::TimeTicks::Now();
bool fullscreen_low_power_layer_valid = false;
+/*
ca_layer_tree_coordinator_->CommitPendingTreesToCA(
pixel_damage_rect, &fullscreen_low_power_layer_valid);
+*/
// TODO(ccameron): Plumb the fullscreen low power layer through to the
// appropriate window.
@@ -228,6 +230,7 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
CAContextID ca_context_id = 0;
CAContextID fullscreen_low_power_ca_context_id = 0;
gfx::ScopedRefCountedIOSurfaceMachPort io_surface_mach_port;
+/*
if (use_remote_layer_api_) {
ca_context_id = [ca_context_ contextId];
fullscreen_low_power_ca_context_id =
@@ -238,6 +241,7 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
if (io_surface)
io_surface_mach_port.reset(IOSurfaceCreateMachPort(io_surface));
}
+*/
SendAcceleratedSurfaceBuffersSwapped(
handle_, ca_context_id, fullscreen_low_power_layer_valid,
fullscreen_low_power_ca_context_id, io_surface_mach_port, pixel_size_,
@@ -286,6 +290,7 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
gl::GLImage* image,
const gfx::Rect& pixel_frame_rect,
const gfx::RectF& crop_rect) {
+ CHECK(0);
if (transform != gfx::OVERLAY_TRANSFORM_NONE) {
DLOG(ERROR) << "Invalid overlay plane transform.";
return false;
@@ -310,6 +315,7 @@ void IOSurfaceContextNoOp(scoped_refptr<ui::IOSurfaceContext>) {
const gfx::Transform& transform,
int sorting_context_id,
unsigned filter) {
+ CHECK(0);
base::ScopedCFTypeRef<IOSurfaceRef> io_surface;
base::ScopedCFTypeRef<CVPixelBufferRef> cv_pixel_buffer;
if (contents_image) {
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_io_surface.cc ('k') | ui/accelerated_widget_mac/ca_layer_tree_coordinator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698