| 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/parent_compositor_draw_constraints.h" | 8 #include "android_webview/browser/parent_compositor_draw_constraints.h" | 
| 9 #include "android_webview/browser/shared_renderer_state.h" | 9 #include "android_webview/browser/shared_renderer_state.h" | 
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 61   void DidCompletePageScaleAnimation() override {} | 61   void DidCompletePageScaleAnimation() override {} | 
| 62 | 62 | 
| 63   // cc::LayerTreeHostSingleThreadClient overrides. | 63   // cc::LayerTreeHostSingleThreadClient overrides. | 
| 64   void DidPostSwapBuffers() override {} | 64   void DidPostSwapBuffers() override {} | 
| 65   void DidAbortSwapBuffers() override {} | 65   void DidAbortSwapBuffers() override {} | 
| 66 | 66 | 
| 67   // cc::DelegatedFrameResourceCollectionClient overrides. | 67   // cc::DelegatedFrameResourceCollectionClient overrides. | 
| 68   void UnusedResourcesAreAvailable() override; | 68   void UnusedResourcesAreAvailable() override; | 
| 69 | 69 | 
| 70  private: | 70  private: | 
| 71   void SetFrameData(); |  | 
| 72 |  | 
| 73   SharedRendererState* shared_renderer_state_; | 71   SharedRendererState* shared_renderer_state_; | 
| 74 | 72 | 
| 75   typedef void* EGLContext; | 73   typedef void* EGLContext; | 
| 76   EGLContext last_egl_context_; | 74   EGLContext last_egl_context_; | 
| 77 | 75 | 
| 78   scoped_ptr<cc::CompositorFrame> committed_frame_; | 76   scoped_ptr<cc::CompositorFrame> committed_frame_; | 
| 79 | 77 | 
| 80   // Information about last delegated frame. | 78   // Information about last delegated frame. | 
| 81   gfx::Size frame_size_; | 79   gfx::Size frame_size_; | 
| 82 | 80 | 
| (...skipping 19 matching lines...) Expand all  Loading... | 
| 102   ParentOutputSurface* output_surface_; | 100   ParentOutputSurface* output_surface_; | 
| 103 | 101 | 
| 104   ParentCompositorDrawConstraints draw_constraints_; | 102   ParentCompositorDrawConstraints draw_constraints_; | 
| 105 | 103 | 
| 106   DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 104   DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); | 
| 107 }; | 105 }; | 
| 108 | 106 | 
| 109 }  // namespace android_webview | 107 }  // namespace android_webview | 
| 110 | 108 | 
| 111 #endif  // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 109 #endif  // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ | 
| OLD | NEW | 
|---|