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

Unified Diff: content/renderer/android/synchronous_compositor_external_begin_frame_source.h

Issue 1969263004: sync compositor: Remove begin frame source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase onto https://codereview.chromium.org/1974133002/ Created 4 years, 6 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
Index: content/renderer/android/synchronous_compositor_external_begin_frame_source.h
diff --git a/content/renderer/android/synchronous_compositor_external_begin_frame_source.h b/content/renderer/android/synchronous_compositor_external_begin_frame_source.h
deleted file mode 100644
index e058c37662e78949c29a8dfa56eb2111990c4f9f..0000000000000000000000000000000000000000
--- a/content/renderer/android/synchronous_compositor_external_begin_frame_source.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_
-#define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "base/threading/thread_checker.h"
-#include "cc/scheduler/begin_frame_source.h"
-
-namespace content {
-
-class SynchronousCompositorRegistry;
-
-class SynchronousCompositorExternalBeginFrameSourceClient {
- public:
- virtual void OnNeedsBeginFramesChange(bool needs_begin_frames) = 0;
-
- protected:
- virtual ~SynchronousCompositorExternalBeginFrameSourceClient() {}
-};
-
-// Make sure that this is initialized and set to client before output
-// surface is bound to compositor.
-class SynchronousCompositorExternalBeginFrameSource
- : public cc::BeginFrameSourceBase {
- public:
- SynchronousCompositorExternalBeginFrameSource(
- int routing_id,
- SynchronousCompositorRegistry* registry);
- ~SynchronousCompositorExternalBeginFrameSource() override;
-
- void BeginFrame(const cc::BeginFrameArgs& args);
- void SetClient(SynchronousCompositorExternalBeginFrameSourceClient* client);
- using cc::BeginFrameSourceBase::SetBeginFrameSourcePaused;
-
- // cc::BeginFrameSourceBase implementation.
- void OnNeedsBeginFramesChanged(bool needs_begin_frames) override;
- void AddObserver(cc::BeginFrameObserver* obs) override;
-
- private:
- bool CalledOnValidThread() const;
-
- const int routing_id_;
- SynchronousCompositorRegistry* const registry_;
- bool registered_;
-
- // Not owned.
- SynchronousCompositorExternalBeginFrameSourceClient* client_;
-
- base::ThreadChecker thread_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorExternalBeginFrameSource);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_EXTERNAL_BEGIN_FRAME_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698