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

Unified Diff: cc/test/fake_output_surface_client.h

Issue 286953008: cc: Allow DeferredInitialize to use DelegatingRenderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No call to self constructor in initializer 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/fake_output_surface_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface_client.h
diff --git a/cc/test/fake_output_surface_client.h b/cc/test/fake_output_surface_client.h
index 0548bdea5fe6ef2846a1eef58e7d4cd88db3100d..7058e524e5b5894f112d037dfb092a902f281f82 100644
--- a/cc/test/fake_output_surface_client.h
+++ b/cc/test/fake_output_surface_client.h
@@ -10,16 +10,26 @@
namespace cc {
+class OutputSurface;
+
class FakeOutputSurfaceClient : public OutputSurfaceClient {
public:
FakeOutputSurfaceClient()
boliu 2014/05/21 17:38:50 According to SO (http://stackoverflow.com/question
- : begin_frame_count_(0),
+ : output_surface_(NULL),
+ begin_frame_count_(0),
+ deferred_initialize_called_(false),
+ did_lose_output_surface_called_(false),
+ memory_policy_(0) {}
+
+ explicit FakeOutputSurfaceClient(OutputSurface* output_surface)
+ : output_surface_(output_surface),
+ begin_frame_count_(0),
deferred_initialize_called_(false),
did_lose_output_surface_called_(false),
memory_policy_(0) {}
virtual void DeferredInitialize() OVERRIDE;
- virtual void ReleaseGL() OVERRIDE {}
+ virtual void ReleaseGL() OVERRIDE;
virtual void CommitVSyncParameters(base::TimeTicks timebase,
base::TimeDelta interval) OVERRIDE {}
virtual void SetNeedsRedrawRect(const gfx::Rect& damage_rect) OVERRIDE {}
@@ -49,6 +59,7 @@ class FakeOutputSurfaceClient : public OutputSurfaceClient {
const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; }
private:
+ OutputSurface* output_surface_;
int begin_frame_count_;
bool deferred_initialize_called_;
bool did_lose_output_surface_called_;
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/fake_output_surface_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698