summaryrefslogtreecommitdiffstats
path: root/cc/surfaces/surface_factory.h
diff options
context:
space:
mode:
authorbrianderson <brianderson@chromium.org>2015-10-20 13:35:31 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-20 20:36:33 +0000
commit877996b0753f32b67fac2835756d23f476e72f10 (patch)
treee33de9848de316fb45daa59de60eecf7b47d0d62 /cc/surfaces/surface_factory.h
parente020927c5d71942748f67c25c347d1355dd11135 (diff)
downloadchromium_src-877996b0753f32b67fac2835756d23f476e72f10.zip
chromium_src-877996b0753f32b67fac2835756d23f476e72f10.tar.gz
chromium_src-877996b0753f32b67fac2835756d23f476e72f10.tar.bz2
cc: Plumbing for BeginFrameSource based on Surfaces
This patch makes a stable decision about which Display a Surface belongs to and notifies the corresponding SurfaceFactoryClient of the BeginFrameSource belonging to that Display. The stable decision is based on the sorted order of Display pointers that the Surface currently belongs to. This is only plumbing - the actual endpoints (BeginFrameSource to use and what to do with that BeginFrameSource) still need to be hooked up. R=jbauman,mithro BUG=401331, 471411 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1304063014 Cr-Commit-Position: refs/heads/master@{#355140}
Diffstat (limited to 'cc/surfaces/surface_factory.h')
-rw-r--r--cc/surfaces/surface_factory.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/surfaces/surface_factory.h b/cc/surfaces/surface_factory.h
index 762d5a2..1347728 100644
--- a/cc/surfaces/surface_factory.h
+++ b/cc/surfaces/surface_factory.h
@@ -23,6 +23,7 @@ class Size;
}
namespace cc {
+class BeginFrameSource;
class CopyOutputRequest;
class Surface;
class SurfaceFactoryClient;
@@ -46,6 +47,10 @@ class CC_SURFACES_EXPORT SurfaceFactory
void Create(SurfaceId surface_id);
void Destroy(SurfaceId surface_id);
void DestroyAll();
+
+ void SetBeginFrameSource(SurfaceId surface_id,
+ BeginFrameSource* begin_frame_source);
+
// A frame can only be submitted to a surface created by this factory,
// although the frame may reference surfaces created by other factories.
// The callback is called the first time this frame is used to draw, or if