Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: android_webview/browser/hardware_renderer.h

Issue 414163002: aw: Add and use DrawGL kModeSync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make AwDrawGLInfo future proof Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/layers/delegated_frame_resource_collection.h" 10 #include "cc/layers/delegated_frame_resource_collection.h"
(...skipping 17 matching lines...) Expand all
28 class HardwareRenderer : public cc::LayerTreeHostClient, 28 class HardwareRenderer : public cc::LayerTreeHostClient,
29 public cc::LayerTreeHostSingleThreadClient, 29 public cc::LayerTreeHostSingleThreadClient,
30 public cc::DelegatedFrameResourceCollectionClient { 30 public cc::DelegatedFrameResourceCollectionClient {
31 public: 31 public:
32 explicit HardwareRenderer(SharedRendererState* state); 32 explicit HardwareRenderer(SharedRendererState* state);
33 virtual ~HardwareRenderer(); 33 virtual ~HardwareRenderer();
34 34
35 void DrawGL(bool stencil_enabled, 35 void DrawGL(bool stencil_enabled,
36 int framebuffer_binding_ext, 36 int framebuffer_binding_ext,
37 AwDrawGLInfo* draw_info); 37 AwDrawGLInfo* draw_info);
38 void CommitFrame();
38 39
39 // cc::LayerTreeHostClient overrides. 40 // cc::LayerTreeHostClient overrides.
40 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {} 41 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {}
41 virtual void DidBeginMainFrame() OVERRIDE; 42 virtual void DidBeginMainFrame() OVERRIDE;
42 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE {} 43 virtual void Animate(base::TimeTicks frame_begin_time) OVERRIDE {}
43 virtual void Layout() OVERRIDE {} 44 virtual void Layout() OVERRIDE {}
44 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta, 45 virtual void ApplyScrollAndScale(const gfx::Vector2d& scroll_delta,
45 float page_scale) OVERRIDE {} 46 float page_scale) OVERRIDE {}
46 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 47 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
47 bool fallback) OVERRIDE; 48 bool fallback) OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 88
88 // This is owned indirectly by |layer_tree_host_|. 89 // This is owned indirectly by |layer_tree_host_|.
89 ParentOutputSurface* output_surface_; 90 ParentOutputSurface* output_surface_;
90 91
91 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 92 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
92 }; 93 };
93 94
94 } // namespace android_webview 95 } // namespace android_webview
95 96
96 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 97 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | android_webview/native/aw_contents.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698