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