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

Unified Diff: content/public/renderer/android/synchronous_compositor.h

Issue 15851006: Move synchronous compositor into content/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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/public/renderer/android/synchronous_compositor.h
diff --git a/content/public/renderer/android/synchronous_compositor.h b/content/public/renderer/android/synchronous_compositor.h
deleted file mode 100644
index ef97965775eb80781d319ef3cad401ebb88763fa..0000000000000000000000000000000000000000
--- a/content/public/renderer/android/synchronous_compositor.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2013 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_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
-#define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
-
-#include "ui/gfx/rect.h"
-#include "ui/gfx/size.h"
-
-class SkCanvas;
-
-namespace gfx {
-class Transform;
-};
-
-namespace content {
-
-class SynchronousCompositorClient;
-
-// Interface for embedders that wish to direct compositing operations
-// synchronously under their own control. Only meaningful when the
-// kEnableSyncrhonousRendererCompositor flag is specified.
-class SynchronousCompositor {
- public:
- // Allows changing or resetting the client to NULL (this must be used if
- // the client is being deleted prior to the DidDestroyCompositor() call
- // being received by the client). Ownership of |client| remains with
- // the caller.
- virtual void SetClient(SynchronousCompositorClient* client) = 0;
-
- // Returns true if the compositor is fully initialized and ready to receive
- // calls to DemandDrawHw().
- virtual bool IsHwReady() = 0;
-
- // "On demand" SW draw, into the supplied canvas (observing the transform
- // and clip set there-in).
- virtual bool DemandDrawSw(SkCanvas* canvas) = 0;
-
- // "On demand" hardware draw. The content is first clipped to |damage_area|,
- // then transformed through |transform|, and finally clipped to |view_size|.
- virtual bool DemandDrawHw(
- gfx::Size view_size,
- const gfx::Transform& transform,
- gfx::Rect damage_area) = 0;
-
- protected:
- virtual ~SynchronousCompositor() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/public/renderer/android/synchronous_compositor_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698