/third_party/skia/third_party/externals/imgui/backends/ |
H A D | imgui_impl_sdlrenderer.cpp | 18 // 2021-10-06: Backup and restore modified ClipRect/Viewport. 124 SDL_Rect ClipRect; in ImGui_ImplSDLRenderer_RenderDrawData() member 129 SDL_RenderGetClipRect(bd->SDLRenderer, &old.ClipRect); in ImGui_ImplSDLRenderer_RenderDrawData() 158 ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); in ImGui_ImplSDLRenderer_RenderDrawData() 159 ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); in ImGui_ImplSDLRenderer_RenderDrawData() 188 SDL_RenderSetClipRect(bd->SDLRenderer, old.ClipEnabled ? &old.ClipRect : NULL); in ImGui_ImplSDLRenderer_RenderDrawData()
|
H A D | imgui_impl_opengl2.cpp | 204 ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); in ImGui_ImplOpenGL2_RenderDrawData() 205 ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); in ImGui_ImplOpenGL2_RenderDrawData()
|
H A D | imgui_impl_allegro5.cpp | 175 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplAllegro5_RenderDrawData() 176 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplAllegro5_RenderDrawData()
|
H A D | imgui_impl_dx9.cpp | 252 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX9_RenderDrawData() 253 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX9_RenderDrawData()
|
H A D | imgui_impl_dx10.cpp | 257 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX10_RenderDrawData() 258 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX10_RenderDrawData()
|
H A D | imgui_impl_opengl3.cpp | 446 ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); in ImGui_ImplOpenGL3_RenderDrawData() 447 ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); in ImGui_ImplOpenGL3_RenderDrawData()
|
H A D | imgui_impl_dx11.cpp | 267 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX11_RenderDrawData() 268 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX11_RenderDrawData()
|
H A D | imgui_impl_dx12.cpp | 263 ImVec2 clip_min(pcmd->ClipRect.x - clip_off.x, pcmd->ClipRect.y - clip_off.y); in ImGui_ImplDX12_RenderDrawData() 264 ImVec2 clip_max(pcmd->ClipRect.z - clip_off.x, pcmd->ClipRect.w - clip_off.y); in ImGui_ImplDX12_RenderDrawData()
|
H A D | imgui_impl_wgpu.cpp | 447 ImVec2 clip_min((pcmd->ClipRect.x - clip_off.x) * clip_scale.x, (pcmd->ClipRect.y - clip_off.y) * clip_scale.y); in ImGui_ImplWGPU_RenderDrawData() 448 ImVec2 clip_max((pcmd->ClipRect.z - clip_off.x) * clip_scale.x, (pcmd->ClipRect.w - clip_off.y) * clip_scale.y); in ImGui_ImplWGPU_RenderDrawData()
|
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_tables.cpp | 167 // - Case B: column is clipped / out of sight (because of scrolling or parent ClipRect): TableNextColumn() return false as a hint but we still allow layout output. 173 // ClipRect: normal zero-width zero-width -> [internal] when ClipRect is zero, ItemAdd() will return false and most widgets will early out mid-way. 411 table->HostClipRect = inner_window->ClipRect; in BeginTableEx() 446 table->InnerClipRect = (inner_window == outer_window) ? table->WorkRect : inner_window->ClipRect; in BeginTableEx() 449 table->InnerClipRect.Max.y = (flags & ImGuiTableFlags_NoHostExtendY) ? ImMin(table->InnerClipRect.Max.y, inner_window->WorkRect.Max.y) : inner_window->ClipRect.Max.y; in BeginTableEx() 971 column->MinX = column->MaxX = column->WorkMinX = column->ClipRect.Min.x = column->ClipRect.Max.x = offset_x; in TableUpdateLayout() 973 column->ClipRect.Min.y = work_rect.Min.y; in TableUpdateLayout() 974 column->ClipRect in TableUpdateLayout() 2335 ImRect ClipRect; TableMergeDrawChannels() member [all...] |
H A D | imgui_draw.cpp | 406 IM_ASSERT(IM_OFFSETOF(ImDrawCmd, ClipRect) == 0); in _ResetForNewFrame() 454 draw_cmd.ClipRect = _CmdHeader.ClipRect; // Same as calling ImDrawCmd_HeaderCopy() in AddDrawCmd() 459 IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); in AddDrawCmd() 489 // Compare ClipRect, TextureId and VtxOffset with a single memcmp() 491 #define ImDrawCmd_HeaderCompare(CMD_LHS, CMD_RHS) (memcmp(CMD_LHS, CMD_RHS, ImDrawCmd_HeaderSize)) // Compare ClipRect, TextureId, VtxOffset 492 #define ImDrawCmd_HeaderCopy(CMD_DST, CMD_SRC) (memcpy(CMD_DST, CMD_SRC, ImDrawCmd_HeaderSize)) // Copy ClipRect, TextureI [all...] |
H A D | imgui.cpp | 323 // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) 325 MyEngineScissor((int)(pcmd->ClipRect.x - pos.x), (int)(pcmd->ClipRect.y - pos.y), (int)(pcmd->ClipRect.z - pos.x), (int)(pcmd->ClipRect.w - pos.y)); 626 ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. 2264 // We create the union of the ClipRect and the scoring rect which at worst should be 1 page away from ClipRect in CalcListClipping() 2265 ImRect unclipped_rect = window->ClipRect; in CalcListClipping() 2913 display_rect.ClipWith(window->ClipRect); in RenderNavHighlight() [all...] |
/third_party/skia/src/utils/ |
H A D | SkCanvasStateUtils.cpp | 45 struct ClipRect { struct 53 ClipRect* clipRects; 154 SkSWriter32<sizeof(ClipRect)> clipWriter; in setup_MC_state() 158 state->clipRects = (ClipRect*)sk_malloc_throw(sizeof(ClipRect)); in setup_MC_state()
|
/third_party/skia/tools/viewer/ |
H A D | ImGuiLayer.cpp | 204 canvas->clipRect(SkRect::MakeLTRB(drawCmd->ClipRect.x, drawCmd->ClipRect.y, in onPaint() 205 drawCmd->ClipRect.z, drawCmd->ClipRect.w)); in onPaint()
|
/third_party/skia/tests/ |
H A D | RecordPatternTest.cpp | 17 Is<ClipRect>, 39 REPORTER_ASSERT(r, pattern.second<ClipRect>() != nullptr); in DEF_TEST() 81 Pattern<Is<Save>, Greedy<Is<ClipRect>>, Is<Restore>> pattern; in DEF_TEST()
|
H A D | RecordTest.cpp | 84 APPEND(record, SkRecords::ClipRect); in DEF_TEST() 95 assert_type<SkRecords::ClipRect>(r, record, 1); in DEF_TEST()
|
H A D | RecordDrawTest.cpp | 73 REPORTER_ASSERT(r, 0 == count_instances_of_type<SkRecords::ClipRect>(rerecord)); in DEF_TEST()
|
/third_party/mesa3d/src/intel/tools/imgui/ |
H A D | imgui_impl_opengl3.cpp | 196 ImVec4 clip_rect = ImVec4(pcmd->ClipRect.x - pos.x, pcmd->ClipRect.y - pos.y, pcmd->ClipRect.z - pos.x, pcmd->ClipRect.w - pos.y); in ImGui_ImplOpenGL3_RenderDrawData()
|
/third_party/mesa3d/src/gallium/targets/haiku-softpipe/ |
H A D | SoftwareRenderer.cpp | 90 void ClipRect(int32 l, int32 t, int32 r, int32 b) in ClipRect() function 236 dstClip.ClipRect(clip->left, clip->top, clip->right + 1, clip->bottom + 1); in Display()
|
/third_party/skia/src/core/ |
H A D | SkRecords.h | 57 M(ClipRect) \ 214 RECORD(ClipRect, 0,
|
H A D | SkRecordOpts.cpp | 230 ClipRect 237 typedef Pattern<Is<SaveLayer>, Is<Save>, Is<ClipRect>, Is<SaveLayer>,
|
H A D | SkRecordDraw.cpp | 107 DRAW(ClipRect, clipRect(r.rect, r.opAA.op(), r.opAA.aa())); 285 void trackBounds(const ClipRect&) { this->pushControl(); } in trackBounds() argument
|
/third_party/mesa3d/src/imgui/ |
H A D | imgui_draw.cpp | 415 draw_cmd.ClipRect = GetCurrentClipRect(); in AddDrawCmd() 418 IM_ASSERT(draw_cmd.ClipRect.x <= draw_cmd.ClipRect.z && draw_cmd.ClipRect.y <= draw_cmd.ClipRect.w); in AddDrawCmd() 443 if (!curr_cmd || (curr_cmd->ElemCount != 0 && memcmp(&curr_cmd->ClipRect, &curr_clip_rect, sizeof(ImVec4)) != 0) || curr_cmd->UserCallback != NULL) in UpdateClipRect() 451 if (curr_cmd->ElemCount == 0 && prev_cmd && memcmp(&prev_cmd->ClipRect, &curr_clip_rect, sizeof(ImVec4)) == 0 && prev_cmd->TextureId == GetCurrentTextureId() && prev_cmd->UserCallback == NULL) in UpdateClipRect() 454 curr_cmd->ClipRect = curr_clip_rect; in UpdateClipRect() 470 if (curr_cmd->ElemCount == 0 && prev_cmd && prev_cmd->TextureId == curr_texture_id && memcmp(&prev_cmd->ClipRect, &GetCurrentClipRect(), sizeof(ImVec4)) == 0 && prev_cmd->UserCallback == NULL) in UpdateTextureID() 549 draw_cmd.ClipRect in ChannelsSplit() [all...] |
H A D | imgui.cpp | 302 // - Note that pcmd->ClipRect contains Min+Max bounds. Some graphics API may use Min+Max, other may use Min+Size (size being Max-Min) 304 MyEngineScissor((int)(pcmd->ClipRect.x - pos.x), (int)(pcmd->ClipRect.y - pos.y), (int)(pcmd->ClipRect.z - pos.x), (int)(pcmd->ClipRect.w - pos.y)); 499 ImDrawCmd: 'vtx_count' becomes 'ElemCount', 'clip_rect' becomes 'ClipRect', 'user_callback' becomes 'UserCallback', 'texture_id' becomes 'TextureId'. 2471 display_rect.ClipWith(window->ClipRect); in RenderNavHighlight() 2477 bool fully_visible = window->ClipRect.Contains(display_rect); in RenderNavHighlight() 2888 if (!bb.Overlaps(window->ClipRect)) in IsClippedEx() 3749 window->ClipRect in PushClipRect() [all...] |
/third_party/mesa3d/src/vulkan/overlay-layer/ |
H A D | overlay.cpp | 1319 scissor.offset.x = (int32_t)(pcmd->ClipRect.x - display_pos.x) > 0 ? (int32_t)(pcmd->ClipRect.x - display_pos.x) : 0; in render_swapchain_display() 1320 scissor.offset.y = (int32_t)(pcmd->ClipRect.y - display_pos.y) > 0 ? (int32_t)(pcmd->ClipRect.y - display_pos.y) : 0; in render_swapchain_display() 1321 scissor.extent.width = (uint32_t)(pcmd->ClipRect.z - pcmd->ClipRect.x); in render_swapchain_display() 1322 scissor.extent.height = (uint32_t)(pcmd->ClipRect.w - pcmd->ClipRect.y + 1); // FIXME: Why +1 here? in render_swapchain_display()
|