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

Side by Side Diff: content/browser/compositor/software_output_device_mac.mm

Issue 745453002: Create an AcceleratedWidgetMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "content/browser/compositor/software_output_device_mac.h" 7 #include "content/browser/compositor/software_output_device_mac.h"
8 8
9 #include "content/browser/compositor/browser_compositor_ca_layer_tree_mac.h" 9 #include "content/browser/compositor/browser_compositor_ca_layer_tree_mac.h"
10 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor) 14 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor)
15 : compositor_(compositor) { 15 : compositor_(compositor) {
16 } 16 }
17 17
18 SoftwareOutputDeviceMac::~SoftwareOutputDeviceMac() { 18 SoftwareOutputDeviceMac::~SoftwareOutputDeviceMac() {
19 } 19 }
20 20
21 void SoftwareOutputDeviceMac::EndPaint(cc::SoftwareFrameData* frame_data) { 21 void SoftwareOutputDeviceMac::EndPaint(cc::SoftwareFrameData* frame_data) {
22 SoftwareOutputDevice::EndPaint(frame_data); 22 SoftwareOutputDevice::EndPaint(frame_data);
23 BrowserCompositorCALayerTreeMacGotSoftwareFrame( 23 AcceleratedWidgetMacGotSoftwareFrame(
24 compositor_->widget(), frame_data, scale_factor_, canvas_.get()); 24 compositor_->widget(), frame_data, scale_factor_, canvas_.get());
25 } 25 }
26 26
27 } // namespace content 27 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/io_surface_layer_mac.mm ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698