| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/containers/scoped_ptr_hash_map.h" | 10 #include "base/containers/scoped_ptr_hash_map.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // Compositor implementation. | 58 // Compositor implementation. |
| 59 virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE; | 59 virtual void SetRootLayer(scoped_refptr<cc::Layer> root) OVERRIDE; |
| 60 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; | 60 virtual void SetWindowSurface(ANativeWindow* window) OVERRIDE; |
| 61 virtual void SetSurface(jobject surface) OVERRIDE; | 61 virtual void SetSurface(jobject surface) OVERRIDE; |
| 62 virtual void SetVisible(bool visible) OVERRIDE; | 62 virtual void SetVisible(bool visible) OVERRIDE; |
| 63 virtual void setDeviceScaleFactor(float factor) OVERRIDE; | 63 virtual void setDeviceScaleFactor(float factor) OVERRIDE; |
| 64 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; | 64 virtual void SetWindowBounds(const gfx::Size& size) OVERRIDE; |
| 65 virtual void SetHasTransparentBackground(bool flag) OVERRIDE; | 65 virtual void SetHasTransparentBackground(bool flag) OVERRIDE; |
| 66 virtual bool CompositeAndReadback( | |
| 67 void *pixels, const gfx::Rect& rect) OVERRIDE; | |
| 68 virtual void SetNeedsComposite() OVERRIDE; | 66 virtual void SetNeedsComposite() OVERRIDE; |
| 69 virtual cc::UIResourceId GenerateUIResource(const SkBitmap& bitmap, | 67 virtual cc::UIResourceId GenerateUIResource(const SkBitmap& bitmap, |
| 70 bool is_transient) OVERRIDE; | 68 bool is_transient) OVERRIDE; |
| 71 virtual cc::UIResourceId GenerateCompressedUIResource(const gfx::Size& size, | 69 virtual cc::UIResourceId GenerateCompressedUIResource(const gfx::Size& size, |
| 72 void* pixels, | 70 void* pixels, |
| 73 bool is_transient) | 71 bool is_transient) |
| 74 OVERRIDE; | 72 OVERRIDE; |
| 75 virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE; | 73 virtual void DeleteUIResource(cc::UIResourceId resource_id) OVERRIDE; |
| 76 | 74 |
| 77 // LayerTreeHostClient implementation. | 75 // LayerTreeHostClient implementation. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 base::TimeDelta vsync_period_; | 156 base::TimeDelta vsync_period_; |
| 159 | 157 |
| 160 base::WeakPtrFactory<CompositorImpl> weak_factory_; | 158 base::WeakPtrFactory<CompositorImpl> weak_factory_; |
| 161 | 159 |
| 162 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); | 160 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); |
| 163 }; | 161 }; |
| 164 | 162 |
| 165 } // namespace content | 163 } // namespace content |
| 166 | 164 |
| 167 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ | 165 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ |
| OLD | NEW |