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

Unified Diff: content/browser/compositor/browser_compositor_ca_layer_tree_mac.h

Issue 638123003: Prepare to move BrowserCompositorViewMac to ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove TODOs 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_ca_layer_tree_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/browser_compositor_ca_layer_tree_mac.h
diff --git a/content/browser/compositor/browser_compositor_ca_layer_tree_mac.h b/content/browser/compositor/browser_compositor_ca_layer_tree_mac.h
index 4092370f702d0a0e2fdb242f41e530da743a3f2d..eb293cd4ee5b41bb62bde8f693f5b97bfb735a1e 100644
--- a/content/browser/compositor/browser_compositor_ca_layer_tree_mac.h
+++ b/content/browser/compositor/browser_compositor_ca_layer_tree_mac.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
#define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
+#include <Cocoa/Cocoa.h>
#include <IOSurface/IOSurfaceAPI.h>
#include "base/mac/scoped_nsobject.h"
@@ -26,8 +27,8 @@ class BrowserCompositorCALayerTreeMac
static BrowserCompositorCALayerTreeMac* FromAcceleratedWidget(
gfx::AcceleratedWidget widget);
- void SetClient(BrowserCompositorViewMacClient* client);
- void ResetClient();
+ void SetView(BrowserCompositorViewMac* view);
+ void ResetView();
ui::Compositor* compositor() const { return compositor_.get(); }
@@ -75,9 +76,8 @@ private:
base::scoped_nsobject<IOSurfaceLayer> io_surface_layer);
void DestroySoftwareLayer();
- // The client of the BrowserCompositorViewMac that is using this as its
- // internals.
- BrowserCompositorViewMacClient* client_;
+ // The BrowserCompositorViewMac that is using this as its internals.
+ BrowserCompositorViewMac* view_;
// A phony NSView handle used to identify this.
gfx::AcceleratedWidget native_widget_;
@@ -113,6 +113,17 @@ private:
gfx::Size last_swap_size_dip_;
};
+void BrowserCompositorCALayerTreeMacGotAcceleratedFrame(
tapted 2014/10/17 11:32:09 (optional) I'd consider moving these to their own
ccameron 2014/10/17 20:57:55 I put in some #if defined(__OBJC__) to allow inclu
+ gfx::AcceleratedWidget widget,
+ uint64 surface_handle, int surface_id,
+ const std::vector<ui::LatencyInfo>& latency_info,
+ gfx::Size pixel_size, float scale_factor,
+ bool* disable_throttling, int* renderer_id);
+
+void BrowserCompositorCALayerTreeMacGotSoftwareFrame(
+ gfx::AcceleratedWidget widget,
+ cc::SoftwareFrameData* frame_data, float scale_factor, SkCanvas* canvas);
+
} // namespace content
#endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_ca_layer_tree_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698