| 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/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 // cc::DisplayClient overrides. | 43 // cc::DisplayClient overrides. |
| 44 void CommitVSyncParameters(base::TimeTicks timebase, | 44 void CommitVSyncParameters(base::TimeTicks timebase, |
| 45 base::TimeDelta interval) override {} | 45 base::TimeDelta interval) override {} |
| 46 void OutputSurfaceLost() override {} | 46 void OutputSurfaceLost() override {} |
| 47 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} | 47 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} |
| 48 | 48 |
| 49 // cc::SurfaceFactoryClient implementation. | 49 // cc::SurfaceFactoryClient implementation. |
| 50 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 50 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 51 void SetBeginFrameSource(cc::SurfaceId surface_id, | 51 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 52 cc::BeginFrameSource* begin_frame_source) override; | |
| 53 | 52 |
| 54 void ReturnResourcesInChildFrame(); | 53 void ReturnResourcesInChildFrame(); |
| 55 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, | 54 void ReturnResourcesToCompositor(const cc::ReturnedResourceArray& resources, |
| 56 unsigned int compositor_routing_id); | 55 unsigned int compositor_routing_id); |
| 57 | 56 |
| 58 SharedRendererState* shared_renderer_state_; | 57 SharedRendererState* shared_renderer_state_; |
| 59 | 58 |
| 60 typedef void* EGLContext; | 59 typedef void* EGLContext; |
| 61 EGLContext last_egl_context_; | 60 EGLContext last_egl_context_; |
| 62 | 61 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 83 | 82 |
| 84 // This is owned by |display_|. | 83 // This is owned by |display_|. |
| 85 ParentOutputSurface* output_surface_; | 84 ParentOutputSurface* output_surface_; |
| 86 | 85 |
| 87 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 86 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 88 }; | 87 }; |
| 89 | 88 |
| 90 } // namespace android_webview | 89 } // namespace android_webview |
| 91 | 90 |
| 92 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 91 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |