| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HARDWARE_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| 7 | 7 |
| 8 #include "android_webview/browser/shared_renderer_state.h" | 8 #include "android_webview/browser/shared_renderer_state.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/layers/delegated_frame_resource_collection.h" | 10 #include "cc/layers/delegated_frame_resource_collection.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 typedef void* EGLContext; | 66 typedef void* EGLContext; |
| 67 EGLContext last_egl_context_; | 67 EGLContext last_egl_context_; |
| 68 | 68 |
| 69 // Information about last delegated frame. | 69 // Information about last delegated frame. |
| 70 gfx::Size frame_size_; | 70 gfx::Size frame_size_; |
| 71 gfx::Vector2d scroll_offset_; | 71 gfx::Vector2d scroll_offset_; |
| 72 | 72 |
| 73 // Information from draw. | 73 // Information from draw. |
| 74 gfx::Size viewport_; | 74 gfx::Size viewport_; |
| 75 gfx::Rect clip_; | 75 gfx::Rect clip_; |
| 76 gfx::Transform transform_; |
| 76 bool stencil_enabled_; | 77 bool stencil_enabled_; |
| 77 bool viewport_clip_valid_for_dcheck_; | 78 bool viewport_clip_valid_for_dcheck_; |
| 78 | 79 |
| 79 scoped_refptr<AwGLSurface> gl_surface_; | 80 scoped_refptr<AwGLSurface> gl_surface_; |
| 80 | 81 |
| 81 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; | 82 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
| 82 scoped_refptr<cc::Layer> root_layer_; | 83 scoped_refptr<cc::Layer> root_layer_; |
| 83 | 84 |
| 84 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_; | 85 scoped_refptr<cc::DelegatedFrameResourceCollection> resource_collection_; |
| 85 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; | 86 scoped_refptr<cc::DelegatedFrameProvider> frame_provider_; |
| 86 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; | 87 scoped_refptr<cc::DelegatedRendererLayer> delegated_layer_; |
| 87 | 88 |
| 88 // This is owned indirectly by |layer_tree_host_|. | 89 // This is owned indirectly by |layer_tree_host_|. |
| 89 ParentOutputSurface* output_surface_; | 90 ParentOutputSurface* output_surface_; |
| 90 | 91 |
| 91 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 92 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 } // namespace android_webview | 95 } // namespace android_webview |
| 95 | 96 |
| 96 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 97 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |