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

Unified Diff: content/common/gpu/ca_layer_tree_mac.h

Issue 1828523003: Mac: Use AVSampleBufferDisplayLayer for 4:2:0 surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Created 4 years, 9 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 | « content/common/BUILD.gn ('k') | content/common/gpu/ca_layer_tree_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/ca_layer_tree_mac.h
diff --git a/content/common/gpu/ca_layer_tree_mac.h b/content/common/gpu/ca_layer_tree_mac.h
index 0840b31cd6dcfc1991d5c6462b97968ceeefbb42..962f6cac85c0d5d6d0cd909d6357e25d00773b08 100644
--- a/content/common/gpu/ca_layer_tree_mac.h
+++ b/content/common/gpu/ca_layer_tree_mac.h
@@ -18,6 +18,8 @@
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/transform.h"
+@class AVSampleBufferDisplayLayer;
+
namespace content {
// The CALayerTree will construct a hierarchy of CALayers from a linear list,
@@ -174,6 +176,11 @@ class CONTENT_EXPORT CALayerTree {
float opacity = 1;
base::scoped_nsobject<CALayer> ca_layer;
+ // If this layer's contents can be represented as an
+ // AVSampleBufferDisplayLayer, then |ca_layer| will point to |av_layer|.
+ base::scoped_nsobject<AVSampleBufferDisplayLayer> av_layer;
+ bool use_av_layer = false;
+
private:
DISALLOW_COPY_AND_ASSIGN(ContentLayer);
};
« no previous file with comments | « content/common/BUILD.gn ('k') | content/common/gpu/ca_layer_tree_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698