blob: 25fee787c6db08d201e8a43d481812a1a0ccb790 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/metrics/field_trial.h"
#include "content/public/common/content_client.h"
namespace gpu {
class SyncPointManager;
namespace shell {
class InterfaceRegistry;
namespace content {
// Embedder API for participating in gpu logic.
class CONTENT_EXPORT ContentGpuClient {
virtual ~ContentGpuClient() {}
// Initializes the client. This sets up the field trial synchronization
// mechanism, which will notify |observer| when a field trial is activated,
// which should be used to inform the browser process of this state.
virtual void Initialize(base::FieldTrialList::Observer* observer) {}
// Allows the client to expose interfaces from the GPU process to the browser
// process via |registry|.
virtual void ExposeInterfacesToBrowser(shell::InterfaceRegistry* registry) {}
// Allows client to supply a SyncPointManager instance instead of having
// content internally create one.
virtual gpu::SyncPointManager* GetSyncPointManager();
} // namespace content