Chromium Code Reviews| Index: content/public/browser/android/graphics_context.h |
| diff --git a/content/public/browser/android/graphics_context.h b/content/public/browser/android/graphics_context.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cf825e9903a12810ccd8871ce4c55dcce9a5c14a |
| --- /dev/null |
| +++ b/content/public/browser/android/graphics_context.h |
| @@ -0,0 +1,35 @@ |
| +// Copyright (c) 2012 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_BROWSER_ANDROID_GRAPHICS_CONTEXT_H_ |
| +#define CONTENT_PUBLIC_BROWSER_ANDROID_GRAPHICS_CONTEXT_H_ |
| + |
| +#include "ui/gfx/native_widget_types.h" |
| + |
| +struct ANativeWindow; |
| + |
| +namespace WebKit { |
| +class WebGraphicsContext3D; |
| +} |
| + |
| +namespace content { |
| + |
| +class GraphicsContext { |
| + public: |
| + GraphicsContext(); |
|
jam
2012/07/27 20:46:29
nit: get rid of this
no sievers
2012/07/31 01:28:44
Done.
|
| + virtual ~GraphicsContext(); |
|
jam
2012/07/27 20:46:29
nit: inline this
no sievers
2012/07/31 01:28:44
Done.
|
| + |
| + // Create a UI graphics context that renders to the given surface. |
| + static GraphicsContext* CreateForUI(ANativeWindow* ui_window); |
| + |
| + virtual WebKit::WebGraphicsContext3D* GetContext3D() = 0; |
| + virtual uint32 InsertSyncPoint() = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(GraphicsContext); |
|
jam
2012/07/27 20:46:29
nit: not needed on interfaces
no sievers
2012/07/31 01:28:44
Done.
|
| +}; |
| + |
| +} // namespace content |
|
Ted C
2012/07/27 20:31:15
extra space
no sievers
2012/07/31 01:28:44
Done.
|
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_ANDROID_GRAPHICS_CONTEXT_H_ |