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

Side by Side Diff: cc/output/output_surface_client.h

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix Created 6 years, 4 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 | « cc/output/output_surface.cc ('k') | cc/resources/picture_layer_tiling.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 20 matching lines...) Expand all
31 // Must call OutputSurface::ReleaseContextProvider inside this call. 31 // Must call OutputSurface::ReleaseContextProvider inside this call.
32 virtual void ReleaseGL() = 0; 32 virtual void ReleaseGL() = 0;
33 virtual void CommitVSyncParameters(base::TimeTicks timebase, 33 virtual void CommitVSyncParameters(base::TimeTicks timebase,
34 base::TimeDelta interval) = 0; 34 base::TimeDelta interval) = 0;
35 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) = 0; 35 virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) = 0;
36 virtual void BeginFrame(const BeginFrameArgs& args) = 0; 36 virtual void BeginFrame(const BeginFrameArgs& args) = 0;
37 virtual void DidSwapBuffers() = 0; 37 virtual void DidSwapBuffers() = 0;
38 virtual void DidSwapBuffersComplete() = 0; 38 virtual void DidSwapBuffersComplete() = 0;
39 virtual void ReclaimResources(const CompositorFrameAck* ack) = 0; 39 virtual void ReclaimResources(const CompositorFrameAck* ack) = 0;
40 virtual void DidLoseOutputSurface() = 0; 40 virtual void DidLoseOutputSurface() = 0;
41 virtual void SetExternalDrawConstraints(const gfx::Transform& transform, 41 virtual void SetExternalDrawConstraints(
42 const gfx::Rect& viewport, 42 const gfx::Transform& transform,
43 const gfx::Rect& clip, 43 const gfx::Rect& viewport,
44 bool resourceless_software_draw) = 0; 44 const gfx::Rect& clip,
45 const gfx::Rect& viewport_rect_for_tile_priority,
46 const gfx::Transform& transform_for_tile_priority,
47 bool resourceless_software_draw) = 0;
45 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0; 48 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) = 0;
46 // If set, |callback| will be called subsequent to each new tree activation, 49 // If set, |callback| will be called subsequent to each new tree activation,
47 // regardless of the compositor visibility or damage. |callback| must remain 50 // regardless of the compositor visibility or damage. |callback| must remain
48 // valid for the lifetime of the OutputSurfaceClient or until unregisted -- 51 // valid for the lifetime of the OutputSurfaceClient or until unregisted --
49 // use SetTreeActivationCallback(base::Closure()) to unregister it. 52 // use SetTreeActivationCallback(base::Closure()) to unregister it.
50 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0; 53 virtual void SetTreeActivationCallback(const base::Closure& callback) = 0;
51 54
52 protected: 55 protected:
53 virtual ~OutputSurfaceClient() {} 56 virtual ~OutputSurfaceClient() {}
54 }; 57 };
55 58
56 } // namespace cc 59 } // namespace cc
57 60
58 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_ 61 #endif // CC_OUTPUT_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698