| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace gfx { | 24 namespace gfx { |
| 25 class Rect; | 25 class Rect; |
| 26 class Size; | 26 class Size; |
| 27 class Transform; | 27 class Transform; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace android_webview { | 30 namespace android_webview { |
| 31 | 31 |
| 32 class AwGLSurface; | |
| 33 class ParentOutputSurface; | 32 class ParentOutputSurface; |
| 34 class ScopedAppGLStateRestore; | |
| 35 | 33 |
| 36 class SurfacesInstance : public base::RefCounted<SurfacesInstance>, | 34 class SurfacesInstance : public base::RefCounted<SurfacesInstance>, |
| 37 public cc::DisplayClient, | 35 public cc::DisplayClient, |
| 38 public cc::SurfaceFactoryClient { | 36 public cc::SurfaceFactoryClient { |
| 39 public: | 37 public: |
| 40 static scoped_refptr<SurfacesInstance> GetOrCreateInstance(); | 38 static scoped_refptr<SurfacesInstance> GetOrCreateInstance(); |
| 41 | 39 |
| 42 cc::FrameSinkId AllocateFrameSinkId(); | 40 cc::FrameSinkId AllocateFrameSinkId(); |
| 43 cc::SurfaceManager* GetSurfaceManager(); | 41 cc::SurfaceManager* GetSurfaceManager(); |
| 44 | 42 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 82 |
| 85 // This is owned by |display_|. | 83 // This is owned by |display_|. |
| 86 ParentOutputSurface* output_surface_; | 84 ParentOutputSurface* output_surface_; |
| 87 | 85 |
| 88 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); | 86 DISALLOW_COPY_AND_ASSIGN(SurfacesInstance); |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace android_webview | 89 } // namespace android_webview |
| 92 | 90 |
| 93 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ | 91 #endif // ANDROID_WEBVIEW_BROWSER_SURFACES_INSTANCE_H_ |
| OLD | NEW |