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

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

Issue 1122393003: CC: Plumb LayerSettings parameter for cc::Layer construction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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
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"
11 #include "cc/trees/layer_tree_host_client.h" 11 #include "cc/trees/layer_tree_host_client.h"
12 #include "cc/trees/layer_tree_host_single_thread_client.h" 12 #include "cc/trees/layer_tree_host_single_thread_client.h"
13 13
14 struct AwDrawGLInfo; 14 struct AwDrawGLInfo;
15 15
16 namespace cc { 16 namespace cc {
17 class DelegatedFrameProvider; 17 class DelegatedFrameProvider;
18 class DelegatedRendererLayer; 18 class DelegatedRendererLayer;
19 class Layer; 19 class Layer;
20 class LayerSettings;
20 class LayerTreeHost; 21 class LayerTreeHost;
21 } 22 }
22 23
23 namespace android_webview { 24 namespace android_webview {
24 25
25 class AwGLSurface; 26 class AwGLSurface;
26 class ChildFrame; 27 class ChildFrame;
27 class ParentOutputSurface; 28 class ParentOutputSurface;
28 29
29 class HardwareRenderer : public cc::LayerTreeHostClient, 30 class HardwareRenderer : public cc::LayerTreeHostClient,
30 public cc::LayerTreeHostSingleThreadClient, 31 public cc::LayerTreeHostSingleThreadClient,
31 public cc::DelegatedFrameResourceCollectionClient { 32 public cc::DelegatedFrameResourceCollectionClient {
32 public: 33 public:
33 explicit HardwareRenderer(SharedRendererState* state); 34 explicit HardwareRenderer(SharedRendererState* state);
34 ~HardwareRenderer() override; 35 ~HardwareRenderer() override;
35 36
37 static const cc::LayerSettings& LayerSettings();
boliu 2015/05/22 04:24:07 This should not be a public method. Just put it in
38
36 void DrawGL(bool stencil_enabled, 39 void DrawGL(bool stencil_enabled,
37 int framebuffer_binding_ext, 40 int framebuffer_binding_ext,
38 AwDrawGLInfo* draw_info); 41 AwDrawGLInfo* draw_info);
39 void CommitFrame(); 42 void CommitFrame();
40 43
41 // cc::LayerTreeHostClient overrides. 44 // cc::LayerTreeHostClient overrides.
42 void WillBeginMainFrame() override {} 45 void WillBeginMainFrame() override {}
43 void DidBeginMainFrame() override; 46 void DidBeginMainFrame() override;
44 void BeginMainFrame(const cc::BeginFrameArgs& args) override {} 47 void BeginMainFrame(const cc::BeginFrameArgs& args) override {}
45 void BeginMainFrameNotExpectedSoon() override {} 48 void BeginMainFrameNotExpectedSoon() override {}
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 102
100 // This is owned indirectly by |layer_tree_host_|. 103 // This is owned indirectly by |layer_tree_host_|.
101 ParentOutputSurface* output_surface_; 104 ParentOutputSurface* output_surface_;
102 105
103 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 106 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
104 }; 107 };
105 108
106 } // namespace android_webview 109 } // namespace android_webview
107 110
108 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 111 #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/browser/hardware_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698