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

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

Issue 287993004: [Android WebView] Implement Ubercomp for Render Thread support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
6 #define ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "cc/output/output_surface.h"
10
11 namespace android_webview {
12
13 class ParentOutputSurface : NON_EXPORTED_BASE(public cc::OutputSurface) {
14 public:
15 explicit ParentOutputSurface(
16 scoped_refptr<cc::ContextProvider> context_provider);
17 virtual ~ParentOutputSurface();
18
19 // OutputSurface.
20 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE;
21 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE {}
22 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
23
24 base::WeakPtr<ParentOutputSurface> GetWeakPtr();
25 void SetDrawConstraints(const gfx::Size& surface_size, const gfx::Rect& clip);
26
27 private:
28 void UpdateClientBeforeDraw();
29
30 base::WeakPtrFactory<ParentOutputSurface> weak_factory_;
31 gfx::Rect clip_;
32
33 DISALLOW_COPY_AND_ASSIGN(ParentOutputSurface);
34 };
35
36 } // namespace android_webview
37
38 #endif // ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698