| 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/surfaces/display_client.h" | 10 #include "cc/surfaces/display_client.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 // cc::DisplayClient overrides. | 42 // cc::DisplayClient overrides. |
| 43 void CommitVSyncParameters(base::TimeTicks timebase, | 43 void CommitVSyncParameters(base::TimeTicks timebase, |
| 44 base::TimeDelta interval) override {} | 44 base::TimeDelta interval) override {} |
| 45 void OutputSurfaceLost() override {} | 45 void OutputSurfaceLost() override {} |
| 46 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} | 46 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override {} |
| 47 | 47 |
| 48 // cc::SurfaceFactoryClient implementation. | 48 // cc::SurfaceFactoryClient implementation. |
| 49 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 49 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 50 void SetBeginFrameSource(cc::SurfaceId surface_id, |
| 51 cc::BeginFrameSource* begin_frame_source) override; |
| 50 | 52 |
| 51 void ReturnResourcesInChildFrame(); | 53 void ReturnResourcesInChildFrame(); |
| 52 | 54 |
| 53 SharedRendererState* shared_renderer_state_; | 55 SharedRendererState* shared_renderer_state_; |
| 54 | 56 |
| 55 typedef void* EGLContext; | 57 typedef void* EGLContext; |
| 56 EGLContext last_egl_context_; | 58 EGLContext last_egl_context_; |
| 57 | 59 |
| 58 // Information about last delegated frame. | 60 // Information about last delegated frame. |
| 59 gfx::Size frame_size_; | 61 gfx::Size frame_size_; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 77 | 79 |
| 78 // This is owned by |display_|. | 80 // This is owned by |display_|. |
| 79 ParentOutputSurface* output_surface_; | 81 ParentOutputSurface* output_surface_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 83 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace android_webview | 86 } // namespace android_webview |
| 85 | 87 |
| 86 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 88 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |