summaryrefslogtreecommitdiffstats
path: root/cc/output
diff options
context:
space:
mode:
authorjbauman <jbauman@chromium.org>2014-10-03 13:51:23 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-03 20:51:34 +0000
commita8c5cc954741060cf01a5cf156b5ecaabc219444 (patch)
treec3e15218458ba558a66689a7353b2138fa7859e6 /cc/output
parentf4518c10c2862ffaa359a6b47726f4d28d4ee14f (diff)
downloadchromium_src-a8c5cc954741060cf01a5cf156b5ecaabc219444.zip
chromium_src-a8c5cc954741060cf01a5cf156b5ecaabc219444.tar.gz
chromium_src-a8c5cc954741060cf01a5cf156b5ecaabc219444.tar.bz2
Make browser compositor and display share a context
The browser compositor and the display won't interfere with each other, so sharing a context avoids wasting time and memory creating a second context. The display should own the context, though it passes information related to context lost and memory management to the browser compositor. Review URL: https://codereview.chromium.org/615313003 Cr-Commit-Position: refs/heads/master@{#298093}
Diffstat (limited to 'cc/output')
-rw-r--r--cc/output/output_surface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 9bc95d0..c79f770 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -133,6 +133,9 @@ class CC_EXPORT OutputSurface {
return overlay_candidate_validator_.get();
}
+ void DidLoseOutputSurface();
+ void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
+
protected:
OutputSurfaceClient* client_;
@@ -156,7 +159,6 @@ class CC_EXPORT OutputSurface {
void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
void ReclaimResources(const CompositorFrameAck* ack);
- void DidLoseOutputSurface();
void SetExternalStencilTest(bool enabled);
void SetExternalDrawConstraints(
const gfx::Transform& transform,
@@ -169,7 +171,6 @@ class CC_EXPORT OutputSurface {
private:
void SetUpContext3d();
void ResetContext3d();
- void SetMemoryPolicy(const ManagedMemoryPolicy& policy);
bool external_stencil_test_enabled_;