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

Side by Side Diff: content/browser/compositor/io_surface_context_mac.h

Issue 623563003: Refactor and delete IOSurface code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/compositor/io_surface_layer_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_
6 #define CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_
7 7
8 #import <AppKit/NSOpenGL.h>
9 #include <OpenGL/OpenGL.h> 8 #include <OpenGL/OpenGL.h>
10 #include <map> 9 #include <map>
11 10
12 #include "base/basictypes.h" 11 #include "base/basictypes.h"
13 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
14 #include "base/mac/scoped_nsobject.h" 13 #include "base/mac/scoped_nsobject.h"
15 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
17 #include "content/public/browser/gpu_data_manager_observer.h" 16 #include "content/public/browser/gpu_data_manager_observer.h"
18 #include "ui/gl/scoped_cgl.h" 17 #include "ui/gl/scoped_cgl.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // The global map from window number and window ordering to 63 // The global map from window number and window ordering to
65 // context data. 64 // context data.
66 typedef std::map<Type, IOSurfaceContext*> TypeMap; 65 typedef std::map<Type, IOSurfaceContext*> TypeMap;
67 static base::LazyInstance<TypeMap> type_map_; 66 static base::LazyInstance<TypeMap> type_map_;
68 static TypeMap* type_map(); 67 static TypeMap* type_map();
69 }; 68 };
70 69
71 } // namespace content 70 } // namespace content
72 71
73 #endif // CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_ 72 #endif // CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/io_surface_layer_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698