| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; | 61 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; |
| 62 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; | 62 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; |
| 63 | 63 |
| 64 // Partial SynchronousCompositor API implementation. | 64 // Partial SynchronousCompositor API implementation. |
| 65 bool InitializeHwDraw( | 65 bool InitializeHwDraw( |
| 66 scoped_refptr<cc::ContextProvider> onscreen_context_provider); | 66 scoped_refptr<cc::ContextProvider> onscreen_context_provider); |
| 67 void ReleaseHwDraw(); | 67 void ReleaseHwDraw(); |
| 68 scoped_ptr<cc::CompositorFrame> DemandDrawHw(gfx::Size surface_size, | 68 scoped_ptr<cc::CompositorFrame> DemandDrawHw(gfx::Size surface_size, |
| 69 const gfx::Transform& transform, | 69 const gfx::Transform& transform, |
| 70 gfx::Rect viewport, | 70 gfx::Rect viewport, |
| 71 gfx::Rect clip, | 71 gfx::Rect clip); |
| 72 bool stencil_enabled); | |
| 73 void ReturnResources(const cc::CompositorFrameAck& frame_ack); | 72 void ReturnResources(const cc::CompositorFrameAck& frame_ack); |
| 74 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas); | 73 scoped_ptr<cc::CompositorFrame> DemandDrawSw(SkCanvas* canvas); |
| 75 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy); | 74 void SetMemoryPolicy(const SynchronousCompositorMemoryPolicy& policy); |
| 76 | 75 |
| 77 private: | 76 private: |
| 78 class SoftwareDevice; | 77 class SoftwareDevice; |
| 79 friend class SoftwareDevice; | 78 friend class SoftwareDevice; |
| 80 | 79 |
| 81 void InvokeComposite(const gfx::Transform& transform, | 80 void InvokeComposite(const gfx::Transform& transform, |
| 82 gfx::Rect viewport, | 81 gfx::Rect viewport, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 100 | 99 |
| 101 cc::OutputSurfaceClient* output_surface_client_; | 100 cc::OutputSurfaceClient* output_surface_client_; |
| 102 scoped_ptr<cc::CompositorFrame> frame_holder_; | 101 scoped_ptr<cc::CompositorFrame> frame_holder_; |
| 103 | 102 |
| 104 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 103 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
| 105 }; | 104 }; |
| 106 | 105 |
| 107 } // namespace content | 106 } // namespace content |
| 108 | 107 |
| 109 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ | 108 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ |
| OLD | NEW |