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

Side by Side Diff: ui/gl/gl_surface.h

Issue 1887533002: Add plumbing to command buffer for CALayer min and mag filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix parameter ordering. Created 4 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_GL_GL_SURFACE_H_ 5 #ifndef UI_GL_GL_SURFACE_H_
6 #define UI_GL_GL_SURFACE_H_ 6 #define UI_GL_GL_SURFACE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // All arguments correspond to their CALayer properties. 182 // All arguments correspond to their CALayer properties.
183 virtual bool ScheduleCALayer(gl::GLImage* contents_image, 183 virtual bool ScheduleCALayer(gl::GLImage* contents_image,
184 const RectF& contents_rect, 184 const RectF& contents_rect,
185 float opacity, 185 float opacity,
186 unsigned background_color, 186 unsigned background_color,
187 unsigned edge_aa_mask, 187 unsigned edge_aa_mask,
188 const RectF& rect, 188 const RectF& rect,
189 bool is_clipped, 189 bool is_clipped,
190 const RectF& clip_rect, 190 const RectF& clip_rect,
191 const Transform& transform, 191 const Transform& transform,
192 int sorting_content_id); 192 int sorting_content_id,
193 unsigned filter);
193 194
194 virtual bool IsSurfaceless() const; 195 virtual bool IsSurfaceless() const;
195 196
196 virtual bool FlipsVertically() const; 197 virtual bool FlipsVertically() const;
197 198
198 // Returns true if SwapBuffers or PostSubBuffers causes a flip, such that 199 // Returns true if SwapBuffers or PostSubBuffers causes a flip, such that
199 // the next buffer may be 2 frames old. 200 // the next buffer may be 2 frames old.
200 virtual bool BuffersFlipped() const; 201 virtual bool BuffersFlipped() const;
201 202
202 // Create a GL surface that renders directly to a view. 203 // Create a GL surface that renders directly to a view.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 296
296 private: 297 private:
297 scoped_refptr<GLSurface> surface_; 298 scoped_refptr<GLSurface> surface_;
298 299
299 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter); 300 DISALLOW_COPY_AND_ASSIGN(GLSurfaceAdapter);
300 }; 301 };
301 302
302 } // namespace gfx 303 } // namespace gfx
303 304
304 #endif // UI_GL_GL_SURFACE_H_ 305 #endif // UI_GL_GL_SURFACE_H_
OLDNEW
« no previous file with comments | « mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h ('k') | ui/gl/gl_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698