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

Unified Diff: cc/test/fake_output_surface.h

Issue 16304003: Unified OutputSurface::SwapBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 205473 Created 7 years, 6 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/scheduler/scheduler.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.h
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
index 7460f93b1baa29baa6bbf5cab9251c820ce239bc..d54ffd3cdaf41c16a2f3ba1372b99198f20216c5 100644
--- a/cc/test/fake_output_surface.h
+++ b/cc/test/fake_output_surface.h
@@ -5,7 +5,6 @@
#ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_
#define CC_TEST_FAKE_OUTPUT_SURFACE_H_
-#include "base/memory/weak_ptr.h"
#include "base/time.h"
#include "cc/output/compositor_frame.h"
#include "cc/output/output_surface.h"
@@ -66,11 +65,11 @@ class FakeOutputSurface : public OutputSurface {
return result.Pass();
}
- virtual void SendFrameToParentCompositor(CompositorFrame* frame) OVERRIDE;
-
CompositorFrame& last_sent_frame() { return last_sent_frame_; }
size_t num_sent_frames() { return num_sent_frames_; }
+ virtual void SwapBuffers(CompositorFrame* frame) OVERRIDE;
+
virtual void SetNeedsBeginFrame(bool enable) OVERRIDE;
bool needs_begin_frame() const {
return needs_begin_frame_;
@@ -85,24 +84,21 @@ class FakeOutputSurface : public OutputSurface {
protected:
FakeOutputSurface(
scoped_ptr<WebKit::WebGraphicsContext3D> context3d,
- bool has_parent);
+ bool delegated_rendering);
FakeOutputSurface(
scoped_ptr<SoftwareOutputDevice> software_device,
- bool has_parent);
+ bool delegated_rendering);
FakeOutputSurface(
scoped_ptr<WebKit::WebGraphicsContext3D> context3d,
scoped_ptr<SoftwareOutputDevice> software_device,
- bool has_parent);
-
- void SendFrameAck();
+ bool delegated_rendering);
CompositorFrame last_sent_frame_;
size_t num_sent_frames_;
bool needs_begin_frame_;
bool forced_draw_to_software_device_;
- base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_;
};
static inline scoped_ptr<cc::OutputSurface> CreateFakeOutputSurface() {
« no previous file with comments | « cc/scheduler/scheduler.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698