| 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::BeginFrameSource* begin_frame_source) override; |
| 50 | 51 |
| 51 void ReturnResourcesInChildFrame(); | 52 void ReturnResourcesInChildFrame(); |
| 52 | 53 |
| 53 SharedRendererState* shared_renderer_state_; | 54 SharedRendererState* shared_renderer_state_; |
| 54 | 55 |
| 55 typedef void* EGLContext; | 56 typedef void* EGLContext; |
| 56 EGLContext last_egl_context_; | 57 EGLContext last_egl_context_; |
| 57 | 58 |
| 58 // Information about last delegated frame. | 59 // Information about last delegated frame. |
| 59 gfx::Size frame_size_; | 60 gfx::Size frame_size_; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 74 | 75 |
| 75 // This is owned by |display_|. | 76 // This is owned by |display_|. |
| 76 ParentOutputSurface* output_surface_; | 77 ParentOutputSurface* output_surface_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 79 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace android_webview | 82 } // namespace android_webview |
| 82 | 83 |
| 83 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 84 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ |
| OLD | NEW |