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

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

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix webview Created 5 years, 2 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
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/surfaces/display_client.h" 10 #include "cc/surfaces/display_client.h"
(...skipping 29 matching lines...) Expand all
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::SurfaceId surface_id,
51 cc::BeginFrameSource* begin_frame_source) override;
50 52
51 void ReturnResourcesInChildFrame(); 53 void ReturnResourcesInChildFrame();
52 54
53 SharedRendererState* shared_renderer_state_; 55 SharedRendererState* shared_renderer_state_;
54 56
55 typedef void* EGLContext; 57 typedef void* EGLContext;
56 EGLContext last_egl_context_; 58 EGLContext last_egl_context_;
57 59
58 // Information about last delegated frame. 60 // Information about last delegated frame.
59 gfx::Size frame_size_; 61 gfx::Size frame_size_;
(...skipping 17 matching lines...) Expand all
77 79
78 // This is owned by |display_|. 80 // This is owned by |display_|.
79 ParentOutputSurface* output_surface_; 81 ParentOutputSurface* output_surface_;
80 82
81 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 83 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
82 }; 84 };
83 85
84 } // namespace android_webview 86 } // namespace android_webview
85 87
86 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 88 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698