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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/cc/CCSingleThreadProxy.h

Issue 10199014: Merge 114800 - [chromium] Plumb a compositor surface ready notification through to the threaded com… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 static PassOwnPtr<CCProxy> create(CCLayerTreeHost*); 41 static PassOwnPtr<CCProxy> create(CCLayerTreeHost*);
42 virtual ~CCSingleThreadProxy(); 42 virtual ~CCSingleThreadProxy();
43 43
44 // CCProxy implementation 44 // CCProxy implementation
45 virtual bool compositeAndReadback(void *pixels, const IntRect&); 45 virtual bool compositeAndReadback(void *pixels, const IntRect&);
46 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, double duration); 46 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use Anchor, float scale, double duration);
47 virtual GraphicsContext3D* context(); 47 virtual GraphicsContext3D* context();
48 virtual void finishAllRendering(); 48 virtual void finishAllRendering();
49 virtual bool isStarted() const; 49 virtual bool isStarted() const;
50 virtual bool initializeContext(); 50 virtual bool initializeContext();
51 virtual void setSurfaceReady() OVERRIDE;
51 virtual bool initializeLayerRenderer(); 52 virtual bool initializeLayerRenderer();
52 virtual bool recreateContext(); 53 virtual bool recreateContext();
53 virtual int compositorIdentifier() const { return m_compositorIdentifier; } 54 virtual int compositorIdentifier() const { return m_compositorIdentifier; }
54 virtual const LayerRendererCapabilities& layerRendererCapabilities() const; 55 virtual const LayerRendererCapabilities& layerRendererCapabilities() const;
55 virtual void loseContext(); 56 virtual void loseContext();
56 virtual void setNeedsAnimate(); 57 virtual void setNeedsAnimate();
57 virtual void setNeedsCommit(); 58 virtual void setNeedsCommit();
58 virtual void setNeedsRedraw(); 59 virtual void setNeedsRedraw();
59 virtual bool commitRequested() const; 60 virtual bool commitRequested() const;
60 virtual void setVisible(bool); 61 virtual void setVisible(bool);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 { 131 {
131 #if !ASSERT_DISABLED 132 #if !ASSERT_DISABLED
132 CCProxy::setCurrentThreadIsImplThread(true); 133 CCProxy::setCurrentThreadIsImplThread(true);
133 #endif 134 #endif
134 } 135 }
135 }; 136 };
136 137
137 } // namespace WebCore 138 } // namespace WebCore
138 139
139 #endif 140 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698