diff options
author | kulkarni.a <kulkarni.a@samsung.com> | 2014-08-26 04:30:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-26 11:31:03 +0000 |
commit | 0139e0db513ef473efe0d13c64d76b2c4baf6599 (patch) | |
tree | dd6d75f2367681cbda3707e95d5023b9b4262259 /cc/test/fake_output_surface.h | |
parent | 694731dca94df5c2dbe48bc26368149a59ef5e05 (diff) | |
download | chromium_src-0139e0db513ef473efe0d13c64d76b2c4baf6599.zip chromium_src-0139e0db513ef473efe0d13c64d76b2c4baf6599.tar.gz chromium_src-0139e0db513ef473efe0d13c64d76b2c4baf6599.tar.bz2 |
Declaring the weak_ptr_factory in proper order.
Cleaning up weak_ptr_factory destruction order.
WeakPtrFactory should remain the last member so it'll be destroyed and
invalidate its weak pointers before any other members are destroyed.
BUG=303818
Review URL: https://codereview.chromium.org/479183002
Cr-Commit-Position: refs/heads/master@{#291885}
Diffstat (limited to 'cc/test/fake_output_surface.h')
-rw-r--r-- | cc/test/fake_output_surface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h index 4fd0d72..193d03c 100644 --- a/cc/test/fake_output_surface.h +++ b/cc/test/fake_output_surface.h @@ -141,8 +141,9 @@ class FakeOutputSurface : public OutputSurface { bool needs_begin_frame_; bool has_external_stencil_test_; TransferableResourceArray resources_held_by_parent_; - base::WeakPtrFactory<FakeOutputSurface> fake_weak_ptr_factory_; scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; + + base::WeakPtrFactory<FakeOutputSurface> fake_weak_ptr_factory_; }; } // namespace cc |