| 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_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE
_H_ | 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 void ReleaseHwDraw(); | 76 void ReleaseHwDraw(); |
| 77 scoped_ptr<cc::CompositorFrame> DemandDrawHw( | 77 scoped_ptr<cc::CompositorFrame> DemandDrawHw( |
| 78 gfx::Size surface_size, | 78 gfx::Size surface_size, |
| 79 const gfx::Transform& transform, | 79 const gfx::Transform& transform, |
| 80 gfx::Rect viewport, | 80 gfx::Rect viewport, |
| 81 gfx::Rect clip, | 81 gfx::Rect clip, |
| 82 gfx::Rect viewport_rect_for_tile_priority, | 82 gfx::Rect viewport_rect_for_tile_priority, |
| 83 const gfx::Transform& transform_for_tile_priority); | 83 const gfx::Transform& transform_for_tile_priority); |
| 84 void ReturnResources(const cc::CompositorFrameAck& frame_ack); | 84 void ReturnResources(const cc::CompositorFrameAck& frame_ack); |
| 85 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas); | 85 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas); |
| 86 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy); | 86 void SetMemoryPolicy(size_t bytes_limit); |
| 87 void GetMessagesToDeliver(ScopedVector<IPC::Message>* messages); | 87 void GetMessagesToDeliver(ScopedVector<IPC::Message>* messages); |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 class SoftwareDevice; | 90 class SoftwareDevice; |
| 91 friend class SoftwareDevice; | 91 friend class SoftwareDevice; |
| 92 | 92 |
| 93 void InvokeComposite(const gfx::Transform& transform, | 93 void InvokeComposite(const gfx::Transform& transform, |
| 94 gfx::Rect viewport, | 94 gfx::Rect viewport, |
| 95 gfx::Rect clip, | 95 gfx::Rect clip, |
| 96 gfx::Rect viewport_rect_for_tile_priority, | 96 gfx::Rect viewport_rect_for_tile_priority, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 118 scoped_ptr<cc::CompositorFrame> frame_holder_; | 118 scoped_ptr<cc::CompositorFrame> frame_holder_; |
| 119 | 119 |
| 120 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 120 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
| 121 | 121 |
| 122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 122 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 } // namespace content | 125 } // namespace content |
| 126 | 126 |
| 127 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ | 127 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ |
| OLD | NEW |