| 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 UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
| 6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // Finishes all outstanding rendering and disables swapping on this surface | 253 // Finishes all outstanding rendering and disables swapping on this surface |
| 254 // until it is resized. | 254 // until it is resized. |
| 255 void DisableSwapUntilResize(); | 255 void DisableSwapUntilResize(); |
| 256 | 256 |
| 257 void SetLatencyInfo(const LatencyInfo& latency_info); | 257 void SetLatencyInfo(const LatencyInfo& latency_info); |
| 258 | 258 |
| 259 // Sets the compositor's device scale factor and size. | 259 // Sets the compositor's device scale factor and size. |
| 260 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel); | 260 void SetScaleAndSize(float scale, const gfx::Size& size_in_pixel); |
| 261 | 261 |
| 262 // Set the output color profile into which this compositor should render. | 262 // Set the output color profile into which this compositor should render. |
| 263 void SetDisplayColorSpace(const gfx::ColorSpace& color_space); | 263 void SetDisplayColorProfile(const gfx::ICCProfile& icc_profile); |
| 264 | 264 |
| 265 // Returns the size of the widget that is being drawn to in pixel coordinates. | 265 // Returns the size of the widget that is being drawn to in pixel coordinates. |
| 266 const gfx::Size& size() const { return size_; } | 266 const gfx::Size& size() const { return size_; } |
| 267 | 267 |
| 268 // Sets the background color used for areas that aren't covered by | 268 // Sets the background color used for areas that aren't covered by |
| 269 // the |root_layer|. | 269 // the |root_layer|. |
| 270 void SetBackgroundColor(SkColor color); | 270 void SetBackgroundColor(SkColor color); |
| 271 | 271 |
| 272 // Sets the visibility of the underlying compositor. | 272 // Sets the visibility of the underlying compositor. |
| 273 void SetVisible(bool visible); | 273 void SetVisible(bool visible); |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 gfx::ColorSpace blending_color_space_; | 441 gfx::ColorSpace blending_color_space_; |
| 442 | 442 |
| 443 base::WeakPtrFactory<Compositor> weak_ptr_factory_; | 443 base::WeakPtrFactory<Compositor> weak_ptr_factory_; |
| 444 | 444 |
| 445 DISALLOW_COPY_AND_ASSIGN(Compositor); | 445 DISALLOW_COPY_AND_ASSIGN(Compositor); |
| 446 }; | 446 }; |
| 447 | 447 |
| 448 } // namespace ui | 448 } // namespace ui |
| 449 | 449 |
| 450 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 450 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
| OLD | NEW |