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

Side by Side Diff: content/browser/compositor/io_surface_layer_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/browser/compositor/io_surface_layer_mac.h" 5 #include "content/browser/compositor/io_surface_layer_mac.h"
6 6
7 #include <CoreFoundation/CoreFoundation.h> 7 #include <CoreFoundation/CoreFoundation.h>
8 #include <OpenGL/CGLIOSurface.h> 8 #include <OpenGL/CGLIOSurface.h>
9 #include <OpenGL/CGLRenderers.h> 9 #include <OpenGL/CGLRenderers.h>
10 #include <OpenGL/gl.h> 10 #include <OpenGL/gl.h>
11 #include <OpenGL/OpenGL.h> 11 #include <OpenGL/OpenGL.h>
12 12
13 #include "base/debug/trace_event.h"
13 #include "base/mac/mac_util.h" 14 #include "base/mac/mac_util.h"
14 #include "base/mac/sdk_forward_declarations.h" 15 #include "base/mac/sdk_forward_declarations.h"
15 #include "content/browser/compositor/io_surface_context_mac.h" 16 #include "content/browser/compositor/io_surface_context_mac.h"
16 #include "content/browser/compositor/io_surface_texture_mac.h" 17 #include "content/browser/compositor/io_surface_texture_mac.h"
17 #include "content/browser/renderer_host/render_widget_host_impl.h"
18 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
19 #include "ui/base/cocoa/animation_utils.h" 18 #include "ui/base/cocoa/animation_utils.h"
20 #include "ui/gfx/size_conversions.h" 19 #include "ui/gfx/size_conversions.h"
21 #include "ui/gl/gpu_switching_manager.h" 20 #include "ui/gl/gpu_switching_manager.h"
22 21
23 //////////////////////////////////////////////////////////////////////////////// 22 ////////////////////////////////////////////////////////////////////////////////
24 // IOSurfaceLayerHelper 23 // IOSurfaceLayerHelper
25 24
26 namespace content { 25 namespace content {
27 26
28 IOSurfaceLayerHelper::IOSurfaceLayerHelper( 27 IOSurfaceLayerHelper::IOSurfaceLayerHelper(
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 if (helper_) 292 if (helper_)
294 helper_->DidDraw(draw_succeeded); 293 helper_->DidDraw(draw_succeeded);
295 294
296 [super drawInCGLContext:glContext 295 [super drawInCGLContext:glContext
297 pixelFormat:pixelFormat 296 pixelFormat:pixelFormat
298 forLayerTime:timeInterval 297 forLayerTime:timeInterval
299 displayTime:timeStamp]; 298 displayTime:timeStamp];
300 } 299 }
301 300
302 @end 301 @end
OLDNEW
« no previous file with comments | « content/browser/compositor/browser_compositor_view_mac.mm ('k') | content/browser/compositor/software_output_device_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698