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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

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: Comments from ccameron. 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 9865 matching lines...) Expand 10 before | Expand all | Expand 10 after
9876 if (!mem) { 9876 if (!mem) {
9877 return error::kOutOfBounds; 9877 return error::kOutOfBounds;
9878 } 9878 }
9879 gfx::RectF contents_rect(mem[0], mem[1], mem[2], mem[3]); 9879 gfx::RectF contents_rect(mem[0], mem[1], mem[2], mem[3]);
9880 gfx::RectF bounds_rect(mem[4], mem[5], mem[6], mem[7]); 9880 gfx::RectF bounds_rect(mem[4], mem[5], mem[6], mem[7]);
9881 gfx::RectF clip_rect(mem[8], mem[9], mem[10], mem[11]); 9881 gfx::RectF clip_rect(mem[8], mem[9], mem[10], mem[11]);
9882 gfx::Transform transform(mem[12], mem[16], mem[20], mem[24], 9882 gfx::Transform transform(mem[12], mem[16], mem[20], mem[24],
9883 mem[13], mem[17], mem[21], mem[25], 9883 mem[13], mem[17], mem[21], mem[25],
9884 mem[14], mem[18], mem[22], mem[26], 9884 mem[14], mem[18], mem[22], mem[26],
9885 mem[15], mem[19], mem[23], mem[27]); 9885 mem[15], mem[19], mem[23], mem[27]);
9886 if (!surface_->ScheduleCALayer(image, contents_rect, c.opacity, 9886 if (!surface_->ScheduleCALayer(
9887 c.background_color, c.edge_aa_mask, 9887 image, contents_rect, c.opacity, c.background_color, c.edge_aa_mask,
9888 bounds_rect, c.is_clipped ? true : false, 9888 bounds_rect, c.is_clipped ? true : false, clip_rect, transform,
9889 clip_rect, transform, c.sorting_context_id)) { 9889 c.sorting_context_id, c.filter)) {
piman 2016/04/14 03:00:34 How do we validate c.filter for correct values? Ar
erikchen 2016/04/14 17:23:19 I added validation logic. I updated the documentat
9890 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glScheduleCALayerCHROMIUM", 9890 LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION, "glScheduleCALayerCHROMIUM",
9891 "failed to schedule CALayer"); 9891 "failed to schedule CALayer");
9892 } 9892 }
9893 return error::kNoError; 9893 return error::kNoError;
9894 } 9894 }
9895 9895
9896 error::Error GLES2DecoderImpl::GetAttribLocationHelper( 9896 error::Error GLES2DecoderImpl::GetAttribLocationHelper(
9897 GLuint client_id, 9897 GLuint client_id,
9898 uint32_t location_shm_id, 9898 uint32_t location_shm_id,
9899 uint32_t location_shm_offset, 9899 uint32_t location_shm_offset,
(...skipping 6463 matching lines...) Expand 10 before | Expand all | Expand 10 after
16363 } 16363 }
16364 16364
16365 // Include the auto-generated part of this file. We split this because it means 16365 // Include the auto-generated part of this file. We split this because it means
16366 // we can easily edit the non-auto generated parts right here in this file 16366 // we can easily edit the non-auto generated parts right here in this file
16367 // instead of having to edit some template or the code generator. 16367 // instead of having to edit some template or the code generator.
16368 #include "base/macros.h" 16368 #include "base/macros.h"
16369 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 16369 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
16370 16370
16371 } // namespace gles2 16371 } // namespace gles2
16372 } // namespace gpu 16372 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_test_autogen.h ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698