| 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/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "cc/output/output_surface.h" | 12 #include "cc/output/output_surface.h" |
| 12 #include "content/public/browser/android/synchronous_compositor.h" | 13 #include "content/public/browser/android/synchronous_compositor.h" |
| 13 | 14 |
| 14 namespace cc { | 15 namespace cc { |
| 15 class CompositorFrameMetadata; | 16 class CompositorFrameMetadata; |
| 16 } | 17 class ContextProvider; |
| 18 } // namespace cc |
| 17 | 19 |
| 18 namespace content { | 20 namespace content { |
| 19 | 21 |
| 20 class SynchronousCompositorClient; | 22 class SynchronousCompositorClient; |
| 21 class SynchronousCompositorOutputSurface; | 23 class SynchronousCompositorOutputSurface; |
| 22 class WebGraphicsContext3DCommandBufferImpl; | 24 class WebGraphicsContext3DCommandBufferImpl; |
| 23 | 25 |
| 24 class SynchronousCompositorOutputSurfaceDelegate { | 26 class SynchronousCompositorOutputSurfaceDelegate { |
| 25 public: | 27 public: |
| 26 virtual void DidBindOutputSurface( | 28 virtual void DidBindOutputSurface( |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool CalledOnValidThread() const; | 76 bool CalledOnValidThread() const; |
| 75 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); | 77 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); |
| 76 | 78 |
| 77 int routing_id_; | 79 int routing_id_; |
| 78 bool needs_begin_frame_; | 80 bool needs_begin_frame_; |
| 79 bool did_swap_buffer_; | 81 bool did_swap_buffer_; |
| 80 | 82 |
| 81 // Only valid (non-NULL) during a DemandDrawSw() call. | 83 // Only valid (non-NULL) during a DemandDrawSw() call. |
| 82 SkCanvas* current_sw_canvas_; | 84 SkCanvas* current_sw_canvas_; |
| 83 | 85 |
| 86 scoped_refptr<cc::ContextProvider> context_provider_for_compositor_thread_; |
| 87 |
| 84 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); | 88 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); |
| 85 }; | 89 }; |
| 86 | 90 |
| 87 } // namespace content | 91 } // namespace content |
| 88 | 92 |
| 89 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ | 93 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF
ACE_H_ |
| OLD | NEW |