| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool registered_; | 105 bool registered_; |
| 106 | 106 |
| 107 // Not owned. | 107 // Not owned. |
| 108 SynchronousCompositorOutputSurfaceClient* sync_client_; | 108 SynchronousCompositorOutputSurfaceClient* sync_client_; |
| 109 | 109 |
| 110 gfx::Transform cached_hw_transform_; | 110 gfx::Transform cached_hw_transform_; |
| 111 gfx::Rect cached_hw_viewport_; | 111 gfx::Rect cached_hw_viewport_; |
| 112 gfx::Rect cached_hw_clip_; | 112 gfx::Rect cached_hw_clip_; |
| 113 gfx::Rect cached_hw_viewport_rect_for_tile_priority_; | 113 gfx::Rect cached_hw_viewport_rect_for_tile_priority_; |
| 114 gfx::Transform cached_hw_transform_for_tile_priority_; | 114 gfx::Transform cached_hw_transform_for_tile_priority_; |
| 115 bool next_hardware_draw_needs_damage_; |
| 115 | 116 |
| 116 // Only valid (non-NULL) during a DemandDrawSw() call. | 117 // Only valid (non-NULL) during a DemandDrawSw() call. |
| 117 SkCanvas* current_sw_canvas_; | 118 SkCanvas* current_sw_canvas_; |
| 118 | 119 |
| 119 cc::ManagedMemoryPolicy memory_policy_; | 120 cc::ManagedMemoryPolicy memory_policy_; |
| 120 | 121 |
| 121 scoped_ptr<cc::CompositorFrame> frame_holder_; | 122 scoped_ptr<cc::CompositorFrame> frame_holder_; |
| 122 | 123 |
| 123 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 124 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
| 124 | 125 |
| 125 base::ThreadChecker thread_checker_; | 126 base::ThreadChecker thread_checker_; |
| 126 | 127 |
| 127 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 128 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 } // namespace content | 131 } // namespace content |
| 131 | 132 |
| 132 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ | 133 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |