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

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

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 // 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 26 matching lines...) Expand all
37 37
38 protected: 38 protected:
39 // cc::OutputSurface: 39 // cc::OutputSurface:
40 void EnsureBackbuffer() override; 40 void EnsureBackbuffer() override;
41 void DiscardBackbuffer() override; 41 void DiscardBackbuffer() override;
42 void Reshape(const gfx::Size& size, 42 void Reshape(const gfx::Size& size,
43 float scale_factor, 43 float scale_factor,
44 const gfx::ColorSpace& color_space, 44 const gfx::ColorSpace& color_space,
45 bool alpha) override; 45 bool alpha) override;
46 void BindFramebuffer() override; 46 void BindFramebuffer() override;
47 void SwapBuffers(cc::CompositorFrame frame) override; 47 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
48 bool IsDisplayedAsOverlayPlane() const override; 48 bool IsDisplayedAsOverlayPlane() const override;
49 unsigned GetOverlayTextureId() const override; 49 unsigned GetOverlayTextureId() const override;
50 bool SurfaceIsSuspendForRecycle() const override; 50 bool SurfaceIsSuspendForRecycle() const override;
51 uint32_t GetFramebufferCopyTextureFormat() override; 51 uint32_t GetFramebufferCopyTextureFormat() override;
52 52
53 // BrowserCompositorOutputSurface 53 // BrowserCompositorOutputSurface
54 void OnReflectorChanged() override; 54 void OnReflectorChanged() override;
55 void OnGpuSwapBuffersCompleted( 55 void OnGpuSwapBuffersCompleted(
56 const std::vector<ui::LatencyInfo>& latency_info, 56 const std::vector<ui::LatencyInfo>& latency_info,
57 gfx::SwapResult result, 57 gfx::SwapResult result,
(...skipping 11 matching lines...) Expand all
69 69
70 private: 70 private:
71 void OnSwapBuffersComplete(); 71 void OnSwapBuffersComplete();
72 72
73 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 73 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
74 }; 74 };
75 75
76 } // namespace content 76 } // namespace content
77 77
78 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 78 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698