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

Unified Diff: ui/accelerated_widget_mac/io_surface_context.h

Issue 753933002: MacViews: Move content::AcceleratedWidget to new component, ui/accelerated_widget_mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20141124-MacViews-MoveSoftwareLayerMac-fromcl
Patch Set: gn check 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 side-by-side diff with in-line comments
Download patch
Index: ui/accelerated_widget_mac/io_surface_context.h
diff --git a/content/browser/compositor/io_surface_context_mac.h b/ui/accelerated_widget_mac/io_surface_context.h
similarity index 87%
rename from content/browser/compositor/io_surface_context_mac.h
rename to ui/accelerated_widget_mac/io_surface_context.h
index 4e5802a0175feaff280fb1d0aca79caa63561b5c..75347b489708a830f6a28e5169ea43fc3723333d 100644
--- a/content/browser/compositor/io_surface_context_mac.h
+++ b/ui/accelerated_widget_mac/io_surface_context.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_
-#define CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_
+#ifndef UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_
+#define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_
#include <OpenGL/OpenGL.h>
#include <map>
@@ -16,7 +16,7 @@
#include "ui/gl/gpu_switching_observer.h"
#include "ui/gl/scoped_cgl.h"
-namespace content {
+namespace ui {
class IOSurfaceContext
: public base::RefCounted<IOSurfaceContext>,
@@ -44,7 +44,7 @@ class IOSurfaceContext
CGLContextObj cgl_context() const { return cgl_context_; }
- // content::GpuDataManagerObserver implementation.
+ // ui::GpuSwitchingObserver implementation.
void OnGpuSwitched() override;
private:
@@ -67,6 +67,6 @@ class IOSurfaceContext
static TypeMap* type_map();
};
-} // namespace content
+} // namespace ui
-#endif // CONTENT_BROWSER_COMPOSITOR_IO_SURFACE_CONTEXT_MAC_H_
+#endif // UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_CONTEXT_H_
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac_export.h ('k') | ui/accelerated_widget_mac/io_surface_context.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698