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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 2089753003: cc: Use the correct internal format for glCopyTexImage2D calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copytextureformat: comments Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool OnMessageReceived(const IPC::Message& message); 72 bool OnMessageReceived(const IPC::Message& message);
73 73
74 // OutputSurface. 74 // OutputSurface.
75 bool BindToClient(cc::OutputSurfaceClient* surface_client) override; 75 bool BindToClient(cc::OutputSurfaceClient* surface_client) override;
76 void DetachFromClient() override; 76 void DetachFromClient() override;
77 void Reshape(const gfx::Size& size, 77 void Reshape(const gfx::Size& size,
78 float scale_factor, 78 float scale_factor,
79 bool has_alpha) override; 79 bool has_alpha) override;
80 void SwapBuffers(cc::CompositorFrame* frame) override; 80 void SwapBuffers(cc::CompositorFrame* frame) override;
81 void Invalidate() override; 81 void Invalidate() override;
82 void BindFramebuffer() override;
83 uint32_t GetFramebufferCopyTextureFormat() override;
82 84
83 // Partial SynchronousCompositor API implementation. 85 // Partial SynchronousCompositor API implementation.
84 void DemandDrawHw(const gfx::Size& surface_size, 86 void DemandDrawHw(const gfx::Size& surface_size,
85 const gfx::Transform& transform, 87 const gfx::Transform& transform,
86 const gfx::Rect& viewport, 88 const gfx::Rect& viewport,
87 const gfx::Rect& clip, 89 const gfx::Rect& clip,
88 const gfx::Rect& viewport_rect_for_tile_priority, 90 const gfx::Rect& viewport_rect_for_tile_priority,
89 const gfx::Transform& transform_for_tile_priority); 91 const gfx::Transform& transform_for_tile_priority);
90 void DemandDrawSw(SkCanvas* canvas); 92 void DemandDrawSw(SkCanvas* canvas);
91 93
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool fallback_tick_running_; 133 bool fallback_tick_running_;
132 134
133 base::ThreadChecker thread_checker_; 135 base::ThreadChecker thread_checker_;
134 136
135 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 137 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
136 }; 138 };
137 139
138 } // namespace content 140 } // namespace content
139 141
140 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 142 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698