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

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

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits Created 4 years, 6 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/parent_output_surface.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_PARENT_OUTPUT_SURFACE_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
6 #define ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_ 6 #define ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
7 7
8 #include "android_webview/browser/scoped_app_gl_state_restore.h" 8 #include "android_webview/browser/scoped_app_gl_state_restore.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
11 11
12 namespace android_webview { 12 namespace android_webview {
13 class AwRenderThreadContextProvider; 13 class AwRenderThreadContextProvider;
14 14
15 class ParentOutputSurface : NON_EXPORTED_BASE(public cc::OutputSurface) { 15 class ParentOutputSurface : NON_EXPORTED_BASE(public cc::OutputSurface) {
16 public: 16 public:
17 explicit ParentOutputSurface( 17 explicit ParentOutputSurface(
18 scoped_refptr<AwRenderThreadContextProvider> context_provider); 18 scoped_refptr<AwRenderThreadContextProvider> context_provider);
19 ~ParentOutputSurface() override; 19 ~ParentOutputSurface() override;
20 20
21 // OutputSurface overrides. 21 // OutputSurface overrides.
22 void DidLoseOutputSurface() override; 22 void DidLoseOutputSurface() override;
23 void Reshape(const gfx::Size& size, 23 void Reshape(const gfx::Size& size,
24 float scale_factor, 24 float scale_factor,
25 bool has_alpha) override; 25 bool has_alpha) override;
26 void SwapBuffers(cc::CompositorFrame* frame) override; 26 void SwapBuffers(cc::CompositorFrame frame) override;
27 void ApplyExternalStencil() override; 27 void ApplyExternalStencil() override;
28 uint32_t GetFramebufferCopyTextureFormat() override; 28 uint32_t GetFramebufferCopyTextureFormat() override;
29 29
30 void SetGLState(const ScopedAppGLStateRestore& gl_state); 30 void SetGLState(const ScopedAppGLStateRestore& gl_state);
31 31
32 private: 32 private:
33 StencilState stencil_state_; 33 StencilState stencil_state_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(ParentOutputSurface); 35 DISALLOW_COPY_AND_ASSIGN(ParentOutputSurface);
36 }; 36 };
37 37
38 } // namespace android_webview 38 } // namespace android_webview
39 39
40 #endif // ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_ 40 #endif // ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/parent_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698