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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 9 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/output_surface.h" 9 #include "cc/output/output_surface.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 class AwRenderThreadContextProvider; 12 class AwRenderThreadContextProvider;
13 13
14 class ParentOutputSurface : NON_EXPORTED_BASE(public cc::OutputSurface) { 14 class ParentOutputSurface : NON_EXPORTED_BASE(public cc::OutputSurface) {
15 public: 15 public:
16 explicit ParentOutputSurface( 16 explicit ParentOutputSurface(
17 scoped_refptr<AwRenderThreadContextProvider> context_provider); 17 scoped_refptr<AwRenderThreadContextProvider> context_provider);
18 ~ParentOutputSurface() override; 18 ~ParentOutputSurface() override;
19 19
20 // OutputSurface overrides. 20 // OutputSurface overrides.
21 void BindToClient(cc::OutputSurfaceClient* client) override; 21 void BindToClient(cc::OutputSurfaceClient* client) override;
22 void EnsureBackbuffer() override; 22 void EnsureBackbuffer() override;
23 void DiscardBackbuffer() override; 23 void DiscardBackbuffer() override;
24 void BindFramebuffer() override; 24 void BindFramebuffer() override;
25 void SetDrawRectangle(const gfx::Rect& rect) override;
25 void Reshape(const gfx::Size& size, 26 void Reshape(const gfx::Size& size,
26 float scale_factor, 27 float scale_factor,
27 const gfx::ColorSpace& color_space, 28 const gfx::ColorSpace& color_space,
28 bool has_alpha, 29 bool has_alpha,
29 bool use_stencil) override; 30 bool use_stencil) override;
30 void SwapBuffers(cc::OutputSurfaceFrame frame) override; 31 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
31 bool HasExternalStencilTest() const override; 32 bool HasExternalStencilTest() const override;
32 void ApplyExternalStencil() override; 33 void ApplyExternalStencil() override;
33 uint32_t GetFramebufferCopyTextureFormat() override; 34 uint32_t GetFramebufferCopyTextureFormat() override;
34 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 35 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
35 bool IsDisplayedAsOverlayPlane() const override; 36 bool IsDisplayedAsOverlayPlane() const override;
36 unsigned GetOverlayTextureId() const override; 37 unsigned GetOverlayTextureId() const override;
37 bool SurfaceIsSuspendForRecycle() const override; 38 bool SurfaceIsSuspendForRecycle() const override;
38 39
39 private: 40 private:
40 DISALLOW_COPY_AND_ASSIGN(ParentOutputSurface); 41 DISALLOW_COPY_AND_ASSIGN(ParentOutputSurface);
41 }; 42 };
42 43
43 } // namespace android_webview 44 } // namespace android_webview
44 45
45 #endif // ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_ 46 #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