| Index: content/public/browser/android/synchronous_compositor.h
|
| diff --git a/content/public/browser/android/synchronous_compositor.h b/content/public/browser/android/synchronous_compositor.h
|
| index 5223480711af6abb5722c0f82589421fe95baa5b..f559b97337ee48bf5855521b502ca1d53ebcf859 100644
|
| --- a/content/public/browser/android/synchronous_compositor.h
|
| +++ b/content/public/browser/android/synchronous_compositor.h
|
| @@ -5,6 +5,7 @@
|
| #ifndef CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
|
| #define CONTENT_PUBLIC_BROWSER_ANDROID_SYNCHRONOUS_COMPOSITOR_H_
|
|
|
| +#include "base/memory/ref_counted.h"
|
| #include "content/common/content_export.h"
|
| #include "ui/gfx/rect.h"
|
| #include "ui/gfx/size.h"
|
| @@ -12,6 +13,7 @@
|
| class SkCanvas;
|
|
|
| namespace gfx {
|
| +class GLSurface;
|
| class Transform;
|
| };
|
|
|
| @@ -40,8 +42,9 @@ class CONTENT_EXPORT SynchronousCompositor {
|
| // Synchronously initialize compositor for hardware draw. Can only be called
|
| // while compositor is in software only mode, either after compositor is
|
| // first created or after ReleaseHwDraw is called. It is invalid to
|
| - // DemandDrawHw before this returns true.
|
| - virtual bool InitializeHwDraw() = 0;
|
| + // DemandDrawHw before this returns true. |surface| is the GLSurface that
|
| + // should be used to create the underlying hardware context.
|
| + virtual bool InitializeHwDraw(scoped_refptr<gfx::GLSurface> surface) = 0;
|
|
|
| // Reverse of InitializeHwDraw above. Can only be called while hardware draw
|
| // is already initialized. Brings compositor back to software only mode and
|
|
|