| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_GFX_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_H_ |
| 6 #define UI_GFX_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_GFX_COMPOSITOR_COMPOSITOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| 11 #include "ui/gfx/compositor/compositor_export.h" | 11 #include "ui/gfx/compositor/compositor_export.h" |
| 12 #include "ui/gfx/transform.h" | 12 #include "ui/gfx/transform.h" |
| 13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
| 14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
| 15 | 15 |
| 16 class SkCanvas; | 16 class SkCanvas; |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 class Point; | 18 class Point; |
| 19 class Rect; | 19 class Rect; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace ui { | 22 namespace ui { |
| 23 | 23 |
| 24 class CompositorObserver; | 24 class CompositorObserver; |
| 25 class Layer; | 25 class Layer; |
| 26 | 26 |
| 27 class SharedResources { |
| 28 public: |
| 29 virtual ~SharedResources() {} |
| 30 virtual bool MakeSharedContextCurrent() = 0; |
| 31 }; |
| 32 |
| 27 struct TextureDrawParams { | 33 struct TextureDrawParams { |
| 28 TextureDrawParams(); | 34 TextureDrawParams(); |
| 29 | 35 |
| 30 // The transform to be applied to the texture. | 36 // The transform to be applied to the texture. |
| 31 ui::Transform transform; | 37 ui::Transform transform; |
| 32 | 38 |
| 33 // If this is true, then the texture is blended with the pixels behind it. | 39 // If this is true, then the texture is blended with the pixels behind it. |
| 34 // Otherwise, the drawn pixels clobber the old pixels. | 40 // Otherwise, the drawn pixels clobber the old pixels. |
| 35 bool blend; | 41 bool blend; |
| 36 | 42 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // calls to it. | 190 // calls to it. |
| 185 static ui::Compositor*(*compositor_factory_)( | 191 static ui::Compositor*(*compositor_factory_)( |
| 186 ui::CompositorDelegate* delegate); | 192 ui::CompositorDelegate* delegate); |
| 187 | 193 |
| 188 friend class base::RefCounted<Compositor>; | 194 friend class base::RefCounted<Compositor>; |
| 189 }; | 195 }; |
| 190 | 196 |
| 191 } // namespace ui | 197 } // namespace ui |
| 192 | 198 |
| 193 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_H_ | 199 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |