| Index: content/browser/renderer_host/compositor_impl_android.h
|
| diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
|
| index 969b1142285f53db11578d47793e0791ca92c900..3bebabdbd858df85be719ff321c565d311ddd6cb 100644
|
| --- a/content/browser/renderer_host/compositor_impl_android.h
|
| +++ b/content/browser/renderer_host/compositor_impl_android.h
|
| @@ -12,6 +12,7 @@
|
| #include "cc/resources/ui_resource_client.h"
|
| #include "cc/trees/layer_tree_host_client.h"
|
| #include "cc/trees/layer_tree_host_single_thread_client.h"
|
| +#include "content/browser/android/ui_resource_provider_impl.h"
|
| #include "content/browser/renderer_host/image_transport_factory_android.h"
|
| #include "content/common/content_export.h"
|
| #include "content/public/browser/android/compositor.h"
|
| @@ -30,6 +31,7 @@ class LayerTreeHost;
|
| namespace content {
|
| class CompositorClient;
|
| class GraphicsContext;
|
| +class UIResourceProvider;
|
|
|
| // -----------------------------------------------------------------------------
|
| // Browser-side compositor that manages a tree of content and UI layers.
|
| @@ -64,13 +66,7 @@ class CONTENT_EXPORT CompositorImpl
|
| virtual bool CompositeAndReadback(
|
| void *pixels, const gfx::Rect& rect) OVERRIDE;
|
| virtual void Composite() OVERRIDE;
|
| - virtual cc::UIResourceId GenerateUIResource(const SkBitmap& bitmap,
|
| - bool is_transient) OVERRIDE;
|
| - virtual cc::UIResourceId GenerateCompressedUIResource(const gfx::Size& size,
|
| - void* pixels,
|
| - bool is_transient)
|
| - OVERRIDE;
|
| - virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE;
|
| + virtual UIResourceProvider* GetUIResourceProvider() OVERRIDE;
|
|
|
| // LayerTreeHostClient implementation.
|
| virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
|
| @@ -100,12 +96,9 @@ class CONTENT_EXPORT CompositorImpl
|
| virtual void AttachLayerForReadback(scoped_refptr<cc::Layer> layer) OVERRIDE;
|
|
|
| private:
|
| - cc::UIResourceId GenerateUIResourceFromUIResourceBitmap(
|
| - const cc::UIResourceBitmap& bitmap,
|
| - bool is_transient);
|
| -
|
| scoped_refptr<cc::Layer> root_layer_;
|
| scoped_ptr<cc::LayerTreeHost> host_;
|
| + content::UIResourceProviderImpl ui_resource_provider_;
|
|
|
| gfx::Size size_;
|
| bool has_transparent_background_;
|
| @@ -116,10 +109,6 @@ class CONTENT_EXPORT CompositorImpl
|
|
|
| CompositorClient* client_;
|
|
|
| - typedef base::ScopedPtrHashMap<cc::UIResourceId, cc::UIResourceClient>
|
| - UIResourceMap;
|
| - UIResourceMap ui_resource_map_;
|
| -
|
| gfx::NativeWindow root_window_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
|
|
|