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

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: More use-after-free. Attempt to fix mojo. 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') | cc/surfaces/display.cc » ('J')
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::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
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_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/hardware_renderer.cc » ('j') | cc/surfaces/display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698