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

Side by Side Diff: content/browser/compositor/offscreen_browser_compositor_output_surface.h

Issue 1416493010: Clean up Mac swap acknowledgement code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update latency info Created 5 years, 1 month 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 23 matching lines...) Expand all
34 // cc::OutputSurface: 34 // cc::OutputSurface:
35 void EnsureBackbuffer() override; 35 void EnsureBackbuffer() override;
36 void DiscardBackbuffer() override; 36 void DiscardBackbuffer() override;
37 void Reshape(const gfx::Size& size, float scale_factor) override; 37 void Reshape(const gfx::Size& size, float scale_factor) override;
38 void BindFramebuffer() override; 38 void BindFramebuffer() override;
39 void SwapBuffers(cc::CompositorFrame* frame) override; 39 void SwapBuffers(cc::CompositorFrame* frame) override;
40 40
41 // BrowserCompositorOutputSurface 41 // BrowserCompositorOutputSurface
42 void OnReflectorChanged() override; 42 void OnReflectorChanged() override;
43 base::Closure CreateCompositionStartedCallback() override; 43 base::Closure CreateCompositionStartedCallback() override;
44 void OnGpuSwapBuffersCompleted(
45 const std::vector<ui::LatencyInfo>& latency_info,
46 gfx::SwapResult result) override{};
44 #if defined(OS_MACOSX) 47 #if defined(OS_MACOSX)
45 void OnSurfaceDisplayed() override {};
46 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; 48 void SetSurfaceSuspendedForRecycle(bool suspended) override {};
47 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override; 49 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override;
48 #endif 50 #endif
49 51
50 uint32 fbo_; 52 uint32 fbo_;
51 bool is_backbuffer_discarded_; 53 bool is_backbuffer_discarded_;
52 scoped_ptr<ReflectorTexture> reflector_texture_; 54 scoped_ptr<ReflectorTexture> reflector_texture_;
53 55
54 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 56 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
55 weak_ptr_factory_; 57 weak_ptr_factory_;
56 58
57 private: 59 private:
58 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 60 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
59 }; 61 };
60 62
61 } // namespace content 63 } // namespace content
62 64
63 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 65 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/image_transport_factory.h ('k') | content/browser/compositor/reflector_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698