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

Side by Side Diff: content/public/renderer/android/synchronous_compositor.h

Issue 14888002: Android WebView Merged-Thread Hardware Draw (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_ 5 #ifndef CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_
6 #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_ 6 #define CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_
7 7
8 #include "ui/gfx/rect.h"
9
8 class SkCanvas; 10 class SkCanvas;
9 11
10 namespace content { 12 namespace content {
11 13
12 class SynchronousCompositorClient; 14 class SynchronousCompositorClient;
13 15
14 // Interface for embedders that which to direct compositing operations 16 // Interface for embedders that which to direct compositing operations
15 // synchronously under their own control. Only meaningful when the 17 // synchronously under their own control. Only meaningful when the
16 // kEnableSyncrhonousRendererCompositor flag is specified. 18 // kEnableSyncrhonousRendererCompositor flag is specified.
17 class SynchronousCompositor { 19 class SynchronousCompositor {
18 public: 20 public:
19 // Allows changing or resetting the client to NULL (this must be used if 21 // Allows changing or resetting the client to NULL (this must be used if
20 // the client is being deleted prior to the DidDestroyCompositor() call 22 // the client is being deleted prior to the DidDestroyCompositor() call
21 // being received by the client). Ownership of |client| remains with 23 // being received by the client). Ownership of |client| remains with
22 // the caller. 24 // the caller.
23 virtual void SetClient(SynchronousCompositorClient* client) = 0; 25 virtual void SetClient(SynchronousCompositorClient* client) = 0;
24 26
25 // "On demand" SW draw, into the supplied canvas (observing the transform 27 // "On demand" SW draw, into the supplied canvas (observing the transform
26 // and clip set there-in). 28 // and clip set there-in).
27 virtual bool DemandDrawSw(SkCanvas* canvas) = 0; 29 virtual bool DemandDrawSw(SkCanvas* canvas) = 0;
28 30
31 // "On demand" hardware draw.
32 virtual void DemandDrawHw(gfx::Rect damage_rect) = 0;
joth 2013/05/03 01:26:26 return bool, for consistency
33
29 protected: 34 protected:
30 virtual ~SynchronousCompositor() {} 35 virtual ~SynchronousCompositor() {}
31 }; 36 };
32 37
33 } // namespace content 38 } // namespace content
34 39
35 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_ 40 #endif // CONTENT_PUBLIC_RENDERER_ANDROID_SYNCHRONOUS_COMPOSTIOR_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698